javascript - Why the template BLANK ? Angularjs -
I do not know why my template is not being sung anymore. I get an empty page that worked before, after some changes it stopped working. I have reversed most code and I still do not work. There is no error of any kind in the console, how would I feel to debug this kind of behavior?
Here is the controller
'strict experiment'; / * Controller * / var crmControllers = angular.module ('crmControllers', []); CrmControllers.controller ('timelinecrunction', ['$ scope', '$ pathperm', '$ http', function ($ radius, $ pathparm, $ http) {var Email id emails = $ routeParams.emailsId; $ http.get ('Http://local.sf.com:8080/timeline/API?emailsId=' + Email ID, {with Credential: True}) Success (Tasks (Timeline) {angular.forEach (Timeline, Tasks (Timeline) {Var inboxIfr InboxIfr = 'http://local.sf.com:8080/messages/inbox?email='+ Timeline.Email +' and EEmail = 'Timeline.Email +' and 'Theme =' + Timeline Sperm timeline box iframe = InboxIfr $ scope.inboxIfr = inboxIfr console.log (inboxIfr);}}}}}}}});
inboxIfr is shown in the console log, which means that it is looping but it has not been sung.
HTML
& lt; Body & gt; & lt; ul ng-repeat = "Timeline in Timeline">
& lt; p & gt; Hello & lt; p / & gt; & lt; iframe class = "container well nicely Small span6 "style =" height: 400px; "ng-src =" {{timeline.inboxIfr}} "> gt; & lt; / iframe & gt; & Lt; / Ul & gt;
App. Js
'Strict Use'; / * App Module * / var crmApp = angular.module ('crmApp', ['ngRoute', 'crmcontrollers',]); CrmApp.config (['$ routeProvider', function ($ migration provider) {$ routeProvider. When ('/ timeline /: email id', {templateUrl: 'partials / time.html', controller: 'timelinecrutings'}) Otherwise ( {RedirectTo: '/ Timeline: Email ID'});}]);
index.html
& lt ;; Doctype html & gt; & Lt; Html lang = "en" ng-app = "crmApp" & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; SF & lt; / Title & gt; & Lt ;! - & lt; & Lt; Link rel = "stylesheet" href = "bower_components / bootstrap / dist / css / bootstrap.css" & gt; - & gt; & Lt ;! - & lt; Link rel = "stylesheet" href = "css / app.css" & gt; - & gt; & Lt; Script src = "bower_components / angular / angular.js" & gt; & Lt; / Script & gt; & Lt; Script src = "bower_components / angular-route / angular-route.js" & gt; & Lt; / Script & gt; & Lt; Script src = "js / controllers.js" & gt; & Lt; / Script & gt; & Lt ;! - & lt; Script src = "bower_components / angular-bootstrap / ui-bootstrap.min.js" & gt; & Lt; / Script & gt; - & gt; & Lt ;! - & lt; Script src = "bower_components / angular-bootstrap / ui-bootstrap-tpls.min.js" & gt; & Lt; / Script & gt; - & gt; & Lt; Script src = "js / app.js" & gt; & Lt; / Script & gt; & Lt; Html & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div ng-view & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;
Edit: I have the ng-repeat = "timeline in the timeline" & gt;
has added some dummy text and it is actually being presented, so the real issue is that nothing is presented within the ng-repeating loop.
EDIT: I have reduced time on this and it is still not being provided. Only the first paragraph is being provided ("I can see it")
& lt; P & gt; I want this & lt; / P & gt; & Lt; Li ng-repeat = "timeline in timeline" & gt; & Lt; P & gt; I can not see it & lt; P / & gt; & Lt; / Li & gt;
The default route is not pointing to a valid route:
app.js:
. Otherwise ({redirectTo: '/ timeline: email id'});
be shoud:
. Otherwise ({redirectTo: '/ timeline /: emailsId'});
Edit: More HTML / angular errors:
- Remove body tags in angular template.
-
ng-repeat
with& lt; Ul & gt;
Tagsand
or other block-elements like& lt; Div & gt;
- Use it with
ng-repeat
with scope variabledeadline
, but you have ever used$ scope.timelines
Comments
Post a Comment