overlay/bootstrap refactor

This commit is contained in:
Adam Bradley
2015-06-22 21:49:58 -05:00
parent 7064095aa7
commit 097fe02728
44 changed files with 269 additions and 323 deletions

View 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);
}
}