chore(): rename to IONIC_DIRECTIVES

Closes #165
This commit is contained in:
Adam Bradley
2015-09-22 13:11:56 -05:00
parent 90d692142d
commit f3358a697e
2 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ class UserButton {
}
}
var IonicDirectives = [IonicButton];
var IONIC_DIRECTIVES = [IonicButton];
@Component({
selector: 'user-modal'
@ -89,7 +89,7 @@ class UserModal {
<button (click)="openModal()">Open Modal</button>
<ng-content></ng-content>
`,
directives: IonicDirectives.concat([UserButton])
directives: IONIC_DIRECTIVES.concat([UserButton])
})
class UserRootComponent {
constructor(ionicModal: IonicModal, userService: UserService) {

View File

@ -23,7 +23,7 @@ import {
* The core Ionic directives. Automatically available in every IonicView
* template.
*/
export const IonicDirectives = [
export const IONIC_DIRECTIVES = [
// TODO: Why is forwardRef() required when they're already imported above????
// Angular
CORE_DIRECTIVES,
@ -92,7 +92,7 @@ export const IonicDirectives = [
class IonicViewImpl extends View {
constructor(args = {}) {
args.directives = (args.directives || []).concat(IonicDirectives);
args.directives = (args.directives || []).concat(IONIC_DIRECTIVES);
super(args);
}
}