2016-04-20 16:32:12 +03:00
|
|
|
/*
|
|
|
|
|
* These are globally available directives in any template
|
|
|
|
|
*/
|
|
|
|
|
|
2016-05-11 17:38:01 +03:00
|
|
|
import {PLATFORM_DIRECTIVES} from '@angular/core';
|
2016-04-20 16:32:12 +03:00
|
|
|
|
|
|
|
|
// Angular 2 Router
|
2016-05-11 17:38:01 +03:00
|
|
|
import {ROUTER_DIRECTIVES} from '@angular/router-deprecated';
|
2016-04-20 16:32:12 +03:00
|
|
|
|
|
|
|
|
// application_directives: directives that are global through out the application
|
|
|
|
|
export const APPLICATION_DIRECTIVES = [
|
2016-05-11 12:55:46 +03:00
|
|
|
...ROUTER_DIRECTIVES
|
2016-04-20 16:32:12 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const DIRECTIVES = [
|
2016-05-11 17:38:01 +03:00
|
|
|
{provide: PLATFORM_DIRECTIVES, multi: true, useValue: APPLICATION_DIRECTIVES }
|
2016-04-20 16:32:12 +03:00
|
|
|
];
|