mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user