javascript - render template into application fail to open any further route on Ember -
i followed answer render error , 404 page, thought working fine, realised can't go other route (by clicking #link-to link), kind of error every time, , doesn't load template:
typeerror: cannot read property 'connectoutlet' of undefined @ appendview (http://localhost:8000/assets/js/libs/ember.js:38926:19) @ emberobject.extend.render (http://localhost:8000/assets/js/libs/ember.js:38742:9) @ emberobject.extend.rendertemplate (http://localhost:8000/assets/js/libs/ember.js:38643:14) @ emberobject.extend.setup (http://localhost:8000/assets/js/libs/ember.js:38083:16) @ handlerenteredorupdated (http://localhost:8000/assets/js/libs/ember.js:41076:36) @ http://localhost:8000/assets/js/libs/ember.js:41045:18 @ foreach (http://localhost:8000/assets/js/libs/ember.js:42113:54) @ setupcontexts (http://localhost:8000/assets/js/libs/ember.js:41044:9) @ object.router.transitionbyintent (http://localhost:8000/assets/js/libs/ember.js:40747:13) @ dotransition (http://localhost:8000/assets/js/libs/ember.js:41300:21) ember.js:3910 uncaught error: assertion failed: typeerror: cannot read property 'connectoutlet' of undefined
just reference, i'm doing in applicationroute
:
this.render(template, { into: 'application' });
oh, there no need that. automatically goes error route when error thrown. http://emberjs.com/guides/routing/loading-and-error-substates/#toc_code-error-code-substates-with-dynamic-segments
remove this, automatically render error route in resource above resource failedthis.render(template, { into: 'application' });
http://emberjs.jsbin.com/jaxufiqu/1/edit
javascript ember.js handlebars.js
Really nice blog post.provided a helpful information.I hope that you will post more updates like this
ReplyDeleteAngularJS 5 Online Course