Created
March 31, 2014 10:48
-
-
Save Piioo/9889746 to your computer and use it in GitHub Desktop.
This is not the expert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### foo.js.handlebars | |
{{#each suggested_experts.experts}} | |
{{this}} | |
{{view Discourse.ExpertExpansionView foo=this }} | |
{{usernmae}} | |
{{/each}} | |
### expert_expansion_view.js | |
Discourse.ExpertExpansionView = Discourse.ContainerView.extend({ | |
init: function(){ | |
this._super(); | |
console.log(this.get('foo')); | |
} | |
}); | |
=> Class {suggested_experts: Class, topic: Class, _parentView: Class, templateData: Object, container: Container…} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment