AngularJS HTML Attribute

adolphe08

New Member
Hi I'm new to Angular.How would you change an html attribute based on the model?I'm trying to change an input's placeholder text based on a length of an array.\[code\]<input placeholder="{{todos.length ? 'Insert todo' : 'Insert your first todo'}}" />\[/code\]but that doesn't seem to work...
 
Back
Top