Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4870

I face PlaceHolder problem

$
0
0

=>my template login.hbs {{page-title “Login”}}

{{outlet}} =>my controller login.js import Controller from '@ember/controller'; export default class LoginController extends Controller { inputBoxes=["UserName","password"]; }

Here i have used a Component called form.hbs which is below

{{#each @inputBoxes as |inputbox|}} {{inputbox}}:{{input type="text" placeholder=inputbox}}
{{/each}} {{@button}}

I tried to use value attribute which works fine perfectly inserted into my input box But Placeholder attribute is not working.

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4870

Trending Articles