Last active
July 30, 2016 02:35
-
-
Save dfreeman/6c74486323b2d9ec02e9429e2ff7742a to your computer and use it in GitHub Desktop.
Component Lookupppppppp
This file contains hidden or 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
| import Ember from 'ember'; | |
| export function testHelper(params/*, hash*/) { | |
| return params; | |
| } | |
| export default Ember.Helper.helper(testHelper); |
This file contains hidden or 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
| import Ember from 'ember'; | |
| import Resolver from 'ember-resolver'; | |
| import config from './config/environment'; | |
| Resolver.reopen({ | |
| resolveOther(...params) { | |
| if (params[0].fullName === 'helper:test-helper') { | |
| console.info('Resolver#resolveOther', params); | |
| } | |
| return this._super(...params); | |
| } | |
| }); | |
| Ember.ComponentLookup.reopen({ | |
| componentFor(...params) { | |
| console.info('ComponentLookup#componentFor', params); | |
| return this._super(...params); | |
| } | |
| }); | |
| export default Ember.Router.extend({ | |
| location: 'none', | |
| rootURL: config.rootURL | |
| }); |
This file contains hidden or 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
| { | |
| "version": "0.10.4", | |
| "EmberENV": { | |
| "FEATURES": {} | |
| }, | |
| "options": { | |
| "use_pods": false, | |
| "enable-testing": false | |
| }, | |
| "dependencies": { | |
| "jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
| "ember": "alpha", | |
| "ember-data": "release", | |
| "ember-template-compiler": "alpha" | |
| }, | |
| "addons": {} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment