Answers for "angular property binding"

1

angular property binding

// component.ts

    @Component({
      templateUrl: 'component.html',
      selector: 'app-component',
    })
    export class Component {
      name = 'Peter';

      updateName() {
        this.name = 'John';
      }
    }
Posted by: Guest on May-17-2020
0

angular property binding

import { Component } from "@angular/core";
@Component({
   selector: 'app-example',
  template: `
              <div>
              <input [value]='myText'></span>       
              </div>
              `
})
export class AppComponent {
  myText: string = "Hello World";
}
Posted by: Guest on November-17-2019

Code answers related to "angular property binding"

Code answers related to "Javascript"

Browse Popular Code Answers by Language