Skip to content

Instantly share code, notes, and snippets.

@anjum121 anjum121/Homepage.ts Secret
Last active Nov 30, 2016

What would you like to do?
Home page where we can use our loader service
import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
import { LoaderService} from '../services/service.loading';
selector: 'page-home',
templateUrl: 'home.html'
export class HomePage {
constructor(public navCtrl: NavController, public navParams: NavParams, public loader:LoaderService) {}
ionViewDidLoad() {
let loaderOptions = {
message:'This is custom message',
// we can just call loader with default settings as below
// or with some custom settings
}, 2000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.