mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
overlay/bootstrap refactor
This commit is contained in:
45
ionic/config/ionic-view.js
Normal file
45
ionic/config/ionic-view.js
Normal file
@ -0,0 +1,45 @@
|
||||
import {coreDirectives} from 'angular2/angular2';
|
||||
|
||||
import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
|
||||
import {
|
||||
Aside, Content, Refresher,
|
||||
Slides, Slide, SlidePager,
|
||||
Tabs, Tab,
|
||||
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
|
||||
coreDirectives,
|
||||
|
||||
// Content
|
||||
Aside, Content, Refresher,
|
||||
List, Item,
|
||||
Slides, Slide, SlidePager,
|
||||
Tabs, Tab,
|
||||
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user