Files
ionic-framework/src/components/fab/test/basic/app-module.ts
Manu Mtz.-Almeida cbf59faa06 fix(fab): fab list colors
fixes #9225
2016-11-18 13:51:33 +01:00

55 lines
914 B
TypeScript
Executable File

import { Component, NgModule } from '@angular/core';
import { IonicApp, IonicModule, FabContainer } from '../../../..';
@Component({
templateUrl: 'main.html'
})
export class E2EPage {
array: number[] = [];
log: string = '';
add() {
this.array.push(1);
this.log += 'add\n';
}
clickMainFAB() {
let message = 'Clicked open social menu';
console.log(message);
this.log += message + '\n';
}
openSocial(network: string, fab: FabContainer) {
let message = 'Share in ' + network;
console.log(message);
this.log += message + '\n';
fab.close();
}
}
@Component({
template: '<ion-nav [root]="root"></ion-nav>'
})
export class E2EApp {
root: any = E2EPage;
}
@NgModule({
declarations: [
E2EApp,
E2EPage
],
imports: [
IonicModule.forRoot(E2EApp)
],
bootstrap: [IonicApp],
entryComponents: [
E2EPage
]
})
export class AppModule {}