=>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}}
{{/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