Can someone with more knowledge of Ember.js than I assist me in figuring out how to access a view without using Global Context?
I’m getting the following JavaScript warning:
DEPRECATION: Resolved the view "Discourse.ComposerHelpContentView" on the global context. Pass a view name to be looked up on the container instead, such as {{view "select"}}. http://emberjs.com/guides/deprecations#toc_global-lookup-of-views-since-1-8
at lookupViewByClassName (http://localhost:3000/assets/development/ember.js?body=1:6841:15)
at handlebarsGetView (http://localhost:3000/assets/development/ember.js?body=1:6889:23)
at EmberObject.create.helper (http://localhost:3000/assets/development/ember.js?body=1:9629:19)
at viewHelper (http://localhost:3000/assets/development/ember.js?body=1:9879:25)
at program3 (eval at <anonymous> (http://localhost:3000/assets/handlebars.js?body=1:1946:25), <anonymous>:22:173)
at prog (http://localhost:3000/assets/handlebars.js?body=1:469:14)
at CoreView.extend.render (http://localhost:3000/assets/development/ember.js?body=1:42305:20)
at apply (http://localhost:3000/assets/development/ember.js?body=1:19679:27)
at superFunction [as _super] (http://localhost:3000/assets/development/ember.js?body=1:16109:15)
Usually what happens is a route comes in, calls a controller, the controller gets stuff form the model (if there is one) and then calls off to the view, which injects stuff into the template. Sorry its been a while. Basically in the context of this topic, you want to tell the view what to be from above, so if you want to access a view from some context you need to go into the thing above where you need the view and tell it there that the view needs to be in the thing below. Hence the such as {{view "select"}} sorry its been a while since I have done much ember, and don’t actually know if this is correct anymore.
Class {toString: function, flashMessage: (...), composerView: Class, __ember1418130257650: "ember1946", __nextSuper: undefined…}
__ember1418130257650: "ember1946"
__ember_meta__: Object
__nextSuper: undefined
composerView: Class
flashMessage: (...)
get flashMessage: function GETTER_FUNCTION() {
set flashMessage: function SETTER_FUNCTION(value) {
parsedContent: "<p>This is just random text to see if it continues to work</p><p>How much can it support?</p><p>Another Line?</p><p>Another Line?</p><p>Another Line?</p><p>Another Line?</p><p>Another Line?</p><p>Another Line?</p><p>Another Line?</p><p>Another Line?</p><p>Another Line?</p><p>Another Line?</p><p>Another Line?</p><p>How many more do we need?</p>"
toString: function () { return ret; }
__proto__: Class
But using this.get(“model.parsedContent”) doesn’t return anything…