Skip to content

Commit

Permalink
Step 7.9: Added phone service to NgModule
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB committed Feb 13, 2017
1 parent 2a48fe8 commit ec071dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/app.module.ts
Expand Up @@ -3,6 +3,7 @@ import { MomentModule } from 'angular2-moment';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { ChatsPage } from '../pages/chats/chats';
import { MessagesPage } from '../pages/messages/messages';
import { PhoneService } from '../services/phone';
import { MyApp } from './app.component';

@NgModule({
Expand All @@ -21,6 +22,9 @@ import { MyApp } from './app.component';
ChatsPage,
MessagesPage
],
providers: [{provide: ErrorHandler, useClass: IonicErrorHandler}]
providers: [
{provide: ErrorHandler, useClass: IonicErrorHandler},
PhoneService
]
})
export class AppModule {}

0 comments on commit ec071dd

Please sign in to comment.