template.html in Decoupled Blocks 8
Same filename in this branch
- 8 modules/pdb_ng2/components/ng2_example_node/template.html
- 8 modules/pdb_ng2/components/ng2_example_configuration/template.html
- 8 modules/pdb_ng2/components/ng2_example_2/template.html
- 8 modules/pdb_ng2/components/ng2_todo/template.html
- 8 modules/pdb_ng2/components/ng2_example_1/template.html
- 8 modules/pdb_ng2/components/ng2_hero/template.html
- 8 modules/pdb_ng2/components/ng2_hero/ng2_hero_detail/template.html
File
modules/pdb_ng2/components/ng2_example_2/template.htmlView source
<h1>Two-way binding in action</h1> <p>Name: <input [(ngModel)]="name"></p> <p>Name: <input [(ngModel)]="name"></p> <p>My name is: {{name}}</p> <h2>The same, but without syntax sugar</h2> <p>Color: <input bind-ngModel="color" on-ngModelChange="color=$event"></p> <p>Color: <input bind-ngModel="color" on-ngModelChange="color=$event"></p> <p>The color is: {{color}}</p>