angularjs - page progress bar in Yeoman/angular signup page -
Hi, I am just learning angular, and I was thinking that someone could tell me what I was doing in the setting. In this simple load bar in the Yemen signup page
signup. In controller.js, I have the following code:
'Strict use'; Angular.module ('lolBetApp'). Controller ('SignupCtrl', function ($ radius, $ http, orth, $ location) {$ scope.user = {}; $ scope.errors = {}; $ scope.register = function (form) {$ scope.submitted = True; if (form. $ Valid) {auth.createUser ({summonerName: $ scope.user.summonerName, email: $ scope.user.email, password: $ scope.user password}). Then (function () { // Account created, redirect to home $ location.path ('/')}} .Cache (function (err) {err = err.data; $ scope.errors = {}; // Update values for form fields Which corresponds to Mongolian errors angular.forEach (err.errors, function (error, field) {form [field]. $ SetValidity ('mongoose', fals E); $ scope.errors [field] = error. Message]})}}}}; $ radius. $ Emit ('LOAD') $ http.jsonp ('http://filltext.com/?rows= 10 & dllay = 5 & amp; fname = {first name} and callback = JSONclub '). Svit (function) {$ scope.people = data; $ radius. $ Emit (' UELOAD ')})}}. Loader controller ', [' $ scope ', function ($ scope) {$ scope. $ (' Load ', function) ($ scope.loading = true}); $ Scope $ ('UELOAD', function () {$ scope.loading = false});}]);
And in my signup, I have the following code:
& lt; Div ng-controller = "loaderController" & gt; & Lt; Div class = "alert alert-info" ng-show = "loading" & gt; Sending ... & lt; / Div & gt; & Lt; Div ng-controller = "myController" & gt; & Lt; Ul & gt; & Lt; Li ng-repeat = "person in person" & gt; {{Person.fname}} & lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt;
I was able to work without using Yemen easily using code in this link
Does someone know what I am doing wrong ?
Thanks,
No problem! The problem I have found to work on is that I have signup.html page
& lt; Div ng-controller = "signupCtrl" & gt; In was the wrong name for the controller. & Lt; Ul & gt; & Lt; Li ng-repeat = "person in person" & gt; {{Person.fname}} & lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt;