App annotation/mode attribute

This commit is contained in:
Adam Bradley
2015-07-08 14:05:37 -05:00
parent 9d2570d2e5
commit 40fc77b0b6
112 changed files with 625 additions and 1466 deletions

View File

@@ -11,7 +11,7 @@ $alert-ios-button-color: #007aff !default;
$alert-ios-button-font-size: 2rem !default;
.alert-ios {
.alert[mode="ios"] {
.alert-container {
border-radius: $alert-ios-border-radius;

View File

@@ -8,7 +8,7 @@ $alert-material-border-radius: 4px !default;
$alert-material-box-shadow: 0px 27px 24px 0 rgba(0, 0, 0, 0.2) !default;
.alert-md {
.alert[mode="md"] {
.alert-container {
box-shadow: $alert-material-box-shadow;

View File

@@ -1,24 +1,17 @@
import {Component} from 'angular2/angular2';
import {IonicView} from 'ionic/ionic';
import {App, Alert} from 'ionic/ionic';
@Component({ selector: 'ion-app' })
@IonicView({
@App({
templateUrl: 'main.html'
})
class IonicApp {
constructor() {
console.log('IonicApp Start')
constructor(alert: Alert) {
this.alert = alert;
}
showAlert() {
console.log('Show alert');
Alert.open({
showAlert() {
this.alert.open({
});
}
}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}