Skip to content

Add support to glimmer-wrapper for MU namespaces#215

Closed
mixonic wants to merge 1 commit intomasterfrom
namespaces
Closed

Add support to glimmer-wrapper for MU namespaces#215
mixonic wants to merge 1 commit intomasterfrom
namespaces

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.

1 participant