Expose the token service in all templates for convenience
This commit is contained in:
parent
97e34725e1
commit
ab530d760a
|
@ -0,0 +1,12 @@
|
|||
export function initialize() {
|
||||
const application = arguments[1] || arguments[0];
|
||||
|
||||
// Provides the acl token service to all templates
|
||||
application.inject('controller', 'token', 'service:token');
|
||||
application.inject('component', 'token', 'service:token');
|
||||
}
|
||||
|
||||
export default {
|
||||
name: 'app-token',
|
||||
initialize,
|
||||
};
|
Loading…
Reference in New Issue