Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

angular input

@Component({
  selector: 'bank-account',
  template: `
    Bank Name: {{bankName}}
    Account Id: {{id}}
  `
})
class BankAccount {
  // This property is bound using its original name.
  @Input() bankName: string;
  // this property value is bound to a different property name
  // when this component is instantiated in a template.
  @Input('account-id') id: string;

  // this property is not bound, and is not automatically updated by Angular
  normalizedBankName: string;
}

@Component({
  selector: 'app',
  template: `
    <bank-account bankName="RBC" account-id="4747"></bank-account>
  `
})
class App {}
Comment

@input in angular

@Input() and @Output() give a child component a way to communicate 
with its parent component.

@Input() lets a parent component update data in the child component. 
@Output() lets the child send data to a parent component.

// Please click source link for more details
Comment

PREVIOUS NEXT
Code Example
Javascript :: convert json data to a html table 
Javascript :: bind method in javascript 
Javascript :: uirouter 
Javascript :: Usage rate-limiter 
Javascript :: accesing jest from bin 
Javascript :: Sorting Data Accessor 
Javascript :: how to use youtube api javascript 
Javascript :: react native modal ios landscape 
Javascript :: round down js 
Javascript :: ways of defining object js 
Javascript :: insertadjacenthtml trong js 
Javascript :: console.log printing object object 
Javascript :: gettwofactorauthenticationuserasync returns null 
Javascript :: como bugar o javascript 
Javascript :: disable google analytics gatsby config.js 
Javascript :: create relationship between schema in sanity 
Javascript :: mariadb javascript 
Javascript :: change photo with js 
Javascript :: https://jsonplaceholder.typicode.com/albums/1 
Javascript :: angular turn text into input 
Javascript :: return js 
Javascript :: javascript Strict Mode in Variable 
Javascript :: get coords of html element js 
Javascript :: alpinjs 
Javascript :: http status code 406 
Javascript :: javaScript getDate() Method 
Javascript :: how to use aos 
Javascript :: angular two way binding 
Javascript :: order by type 
Javascript :: array con doble javascript 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =