mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-19 17:00:13 +01:00
Initial commit.
This commit is contained in:
commit
6558ee2fc4
92 changed files with 3193 additions and 0 deletions
22
src/platform/browser/directives.ts
Normal file
22
src/platform/browser/directives.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* These are globally available directives in any template
|
||||
*/
|
||||
|
||||
import {provide, PLATFORM_DIRECTIVES} from 'angular2/core';
|
||||
|
||||
// Angular 2 Router
|
||||
import {ROUTER_DIRECTIVES} from 'angular2/router';
|
||||
|
||||
// Angular 2 Material 2
|
||||
// TODO(gdi2290): replace with @angular2-material/all
|
||||
import {MATERIAL_DIRECTIVES} from './angular2-material2';
|
||||
|
||||
// application_directives: directives that are global through out the application
|
||||
export const APPLICATION_DIRECTIVES = [
|
||||
...ROUTER_DIRECTIVES,
|
||||
...MATERIAL_DIRECTIVES
|
||||
];
|
||||
|
||||
export const DIRECTIVES = [
|
||||
provide(PLATFORM_DIRECTIVES, { multi: true, useValue: APPLICATION_DIRECTIVES })
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue