I have a part of code like below :
angular.module('tessicommunicationApp')
.controller('RegisterController', function ($scope, $translate, $timeout, Auth) {
$scope.success = null;
$scope.error = null;
$scope.doNotMatch = null;
$scope.errorUserExists = null;
$scope.registerAccount = {};
$timeout(function (){angular.element('[ng-model="registerAccount.login"]').focus();});
My question is simple : I don't manage to locate where is declared the login property. Because in the template, I can read :
<input type="text" class="form-control" id="login" name="login" placeholder="{{'global.form.username.placeholder' | translate}}"
ng-model="registerAccount.login" ng-minlength=1 ng-maxlength=50 ng-pattern="/^[a-z0-9]*$/" required>
the ng-model directive bind the login property which I don't know where it is declared.
Below a part of the route if you want :
angular.module('tessicommunicationApp')
.config(function ($stateProvider) {
$stateProvider
.state('register', {
parent: 'account',
url: '/register',
data: {
authorities: [],
pageTitle: 'register.title'
},
views: {
'content@': {
templateUrl: 'scripts/app/account/register/register.html',
controller: 'RegisterController'
}
},
Thank you for your answers.