Skip to content
This repository has been archived by the owner on Feb 2, 2019. It is now read-only.

Commit

Permalink
fix(input): support two way binding with value
Browse files Browse the repository at this point in the history
 - name the output correctly
 - add json model to the form builder demo to demonstrate it in the examples page
 - closes #62
  • Loading branch information
justindujardin committed Feb 21, 2016
1 parent 0014bc4 commit dc63f19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/components/input/form_builder.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ <h1>{{description}}</h1>
</div>
</md-input-container>
</form>
<strong>Model</strong>
<pre class="md-padding">{{model | json}}</pre>
</md-content>

</div>
2 changes: 1 addition & 1 deletion ng2-material/components/input/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class MdInput {

@Input()
placeholder: string;
@Output()
@Output('valueChange')
mdChange: EventEmitter<any> = new EventEmitter();
@Output()
mdFocusChange: EventEmitter<any> = new EventEmitter();
Expand Down

0 comments on commit dc63f19

Please sign in to comment.