February 2016
Beginner to intermediate
308 pages
5h 46m
English
To create common form controls, input helpers can be used. This recipe will go over how to use them in our Ember applications.
The most common input helper is {{input}}. It wraps around the Ember.TextField view and is almost identical to the traditional <input> HTML element.
app/templates folder, open the application.hbs file and add an input helper:// app/templates/application.hbs
<h2 id="title">Welcome to Ember</h2>
<br>
<br>
{{input value='Hello World'}}This input helper is very simple; all it does is set the value of the textbox to hello world. It is surrounded by double curly braces and supports the normal input attributes.
<h2 id="title">Welcome ...
Read now
Unlock full access