mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
52 lines
1.1 KiB
JavaScript
52 lines
1.1 KiB
JavaScript
import {NgFor, NgIf} from 'angular2/angular2';
|
|
import {NgSwitch, NgSwitchWhen} from 'angular2/angular2'
|
|
import {formDirectives} from 'angular2/forms';
|
|
|
|
import {View} from 'angular2/src/core/annotations_impl/view';
|
|
|
|
import {
|
|
Aside, Content, Refresher,
|
|
Slides, Slide, SlidePager,
|
|
Tabs, Tab,
|
|
ActionMenu,
|
|
List, Item,
|
|
Icon,
|
|
Checkbox, Switch, Label, Input, Segment, SegmentButton,
|
|
RadioGroup, RadioButton, SearchBar,
|
|
Nav, NavbarTemplate, Navbar, NavPush, NavPop
|
|
} from 'ionic/ionic';
|
|
|
|
|
|
export class IonicView extends View {
|
|
constructor(config) {
|
|
let directives = [
|
|
|
|
// Angular
|
|
NgFor, NgIf, formDirectives,
|
|
NgSwitch, NgSwitchWhen,
|
|
|
|
// Content
|
|
Aside, Content, Refresher,
|
|
List, Item,
|
|
Slides, Slide, SlidePager,
|
|
Tabs, Tab,
|
|
|
|
// Overlays
|
|
ActionMenu,
|
|
|
|
// Media
|
|
Icon,
|
|
|
|
// Form elements
|
|
Checkbox, Switch, Label, Input, Segment, SegmentButton,
|
|
RadioGroup, RadioButton, SearchBar,
|
|
|
|
// Nav
|
|
Nav, NavbarTemplate, Navbar, NavPush, NavPop
|
|
];
|
|
|
|
config.directives = (config.directives || []).concat(directives);
|
|
super(config);
|
|
}
|
|
}
|