Skip to content

Commit 8b70d90

Browse files
committed
(#3) file to gather all directives.
1 parent 1975a2c commit 8b70d90

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/app/directives/directives.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/// <reference path="../../typings/_custom.d.ts" />
2+
/*
3+
* Angular 2
4+
*/
5+
import {coreDirectives, formDirectives} from 'angular2/angular2';
6+
import {routerDirectives} from 'angular2/router';
7+
8+
/*
9+
* App
10+
*/
11+
/* TODO: Create Autofocus directive */
12+
//import {Autofocus} from './Autofocus';
13+
14+
// global App only directives
15+
export var appDirectives: Array<any> = [
16+
//Autofocus
17+
];
18+
19+
// global Angular core and other Angular module directives (form/router)
20+
export var angularDirectives: Array<any> = [
21+
// Angular's core directives
22+
coreDirectives,
23+
24+
// Angular's form directives
25+
formDirectives,
26+
27+
// Angular's router
28+
routerDirectives
29+
];

0 commit comments

Comments
 (0)