Hi!
I use in app.js this:
.state('registration', {
url: '/registration',
templateUrl: 'templates/registration.html',
controller: 'RegController'
})
then there is no need ng-controller=“RegController” in registration.html?
Hi!
I use in app.js this:
.state('registration', {
url: '/registration',
templateUrl: 'templates/registration.html',
controller: 'RegController'
})
then there is no need ng-controller=“RegController” in registration.html?
Nope! Once the controller is listed in the state definition, you no longer need to add it to the markup
Thanks the answer, but if i dont use this in html, the form validate not work, (ng-minlength, ng-maxlength…) and when use submit button the input field empty in controller
No, they should work. Check to make sure things are wired up correctly.
You probably have something misspelled somewhere.
thanks, this solved my problem