chore(angular): reverting changes to angular module, cannot figure out why app won't work if it's imported

This commit is contained in:
Dan Bucholtz
2017-11-22 00:49:05 -06:00
parent f96fd86613
commit 5ffb31f49a
9 changed files with 26 additions and 33 deletions

View File

@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { AlertController } from '@ionic/angular';
// import { AlertController } from '@ionic/angular';
@Component({
selector: 'app-alert-page',
@ -21,17 +21,19 @@ import { AlertController } from '@ionic/angular';
})
export class AlertPageComponent {
constructor(private alertController: AlertController) {
constructor(/*private alertController: AlertController*/) {
}
clickMe() {
const alert = this.alertController.create({
/*const alert = this.alertController.create({
title: 'ohhhh snap',
message: 'Gretting from an ng cli app',
});
alert.present();
*/
alert('kaboom');
}
}

View File

@ -4,8 +4,6 @@ import { CommonModule } from '@angular/common';
import { AlertPageComponent } from './alert-page.component';
import { AlertRoutingModule } from './alert-routing.module';
import { AlertController } from '@ionic/angular';
@NgModule({
imports: [
CommonModule,

View File

@ -4,17 +4,15 @@ import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { AlertController } from '@ionic/angular';
@NgModule({
declarations: [AppComponent],
imports: [
AppRoutingModule,
BrowserModule,
// IonicAngularModule
],
providers: [
AlertController
// AlertController
],
bootstrap: [AppComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA]