mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 16:00:14 +01:00
chore(dependencies): update dependencies, move to @types, some refactoring as per AngularClass/angular2-webpack-starter project
This commit is contained in:
parent
7d0ff2ef96
commit
e7fca6d4ed
24 changed files with 505 additions and 295 deletions
19
src/platform/browser-directives.ts
Normal file
19
src/platform/browser-directives.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* These are globally available directives in any template
|
||||
*/
|
||||
// Angular 2
|
||||
import { PLATFORM_DIRECTIVES } from '@angular/core';
|
||||
// Angular 2 Router
|
||||
import { ROUTER_DIRECTIVES } from '@angular/router';
|
||||
// Angular 2 forms
|
||||
import { REACTIVE_FORM_DIRECTIVES } from '@angular/forms';
|
||||
|
||||
// application_directives: directives that are global through out the application
|
||||
export const APPLICATION_DIRECTIVES = [
|
||||
...ROUTER_DIRECTIVES,
|
||||
...REACTIVE_FORM_DIRECTIVES
|
||||
];
|
||||
|
||||
export const DIRECTIVES = [
|
||||
{ provide: PLATFORM_DIRECTIVES, multi: true, useValue: APPLICATION_DIRECTIVES }
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue