Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to glimmer-wrapper for MU namespaces #215

Closed
wants to merge 1 commit into from
Closed

Conversation

mixonic
Copy link
Member

@mixonic mixonic commented Nov 24, 2017

resolver.resolve now takes a third argument rawString which is the
string used at the invocation site of the lookup. For example for:

{{ember-power-select::option}}

The lookup should be:

resolver.resolve('template:component/', null, 'ember-power-select::option')

And for a service example:

Ember.service.inject('auth-addon::main-service')

The lookup would be:

resolver.resolve('service', null, 'auth-addon::main-service')

Refs: #214
Refs: emberjs/ember.js#15350 (comment)

TODO:

resolver.resolve now takes a third argument `rawString` which is the
string used at the invocation site of the lookup. For example for:

```
{{ember-power-select::option}}
```

The lookup should be:

```
resolver.resolve('template:component/', null, 'ember-power-select::option')
``

And for a service example:

```
Ember.service.inject('auth-addon::main-service')
```

The lookup would be:

```
resolver.resolve('service', null, 'auth-addon::main-service')
```

Refs: #214
Refs: emberjs/ember.js#15350 (comment)
);
});

test('Can resolve a namespaced component template', function(assert) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add a test for looking up a component (not a template). Should basically be the same as the service test though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant