Tabnine Logo For Javascript
ionic-angular
Code IndexAdd Tabnine to your IDE (free)

How to use ionic-angular

Best JavaScript code snippets using ionic-angular(Showing top 15 results out of 315)

origin: SaifRehman/ICP-Airways

constructor(public navCtrl: NavController, public navParams: NavParams, public bookingService:BookingService, public alertCtrl: AlertController, public loadingCtrl: LoadingController,public emailService:EmailService, public provider:Provider) {
  this.values = navParams.get("item");
  console.log(this.values);
 }
origin: SaifRehman/ICP-Airways

constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen, public keyboard: Keyboard 
  ) {
  platform.ready().then(() => {
       console.log = function(){};
   statusBar.styleDefault();
   splashScreen.hide();
   timer(1000).subscribe(() => this.showSplash = false) // <-- hide animation after 3s
  });
 }
origin: gaccettola/mortis

// ////////////////////////////////////////////////////////////////////////
  //
  //

  enableMenu ( )
  {
    console.log ( `::enableMenu` );

    let loggedIn = true;

    this._menu.enable ( loggedIn, 'loggedInMenu' );
  }
origin: SaifRehman/ICP-Airways

go(lat, long) {
  this.navCtrl.push(MapPage, {
   item: {
    lat: lat,
    long: long
   }
  });
 }
origin: gaccettola/mortis

// ////////////////////////////////////////////////////////////////////////
  //
  //

  logout_and_redirect_to_login_page ( )
  {
    this._dataframeAccount.logout ( );

    this.nav.setRoot ( LoginComponent ).catch( () =>
    {
      console.log ( "Didn't set nav root" );

    } );
  }
origin: gaccettola/mortis

openPage ( page : PageInterface )
  {
    console.log ( `::openPage`, page );

    if ( -1 === page.id )
    {
      this.logout_and_redirect_to_login_page ( );

    } else
    {
      this.nav.setRoot ( page.component ).catch( () =>
      {
        this.logout_and_redirect_to_login_page ( );

      } );

    }

  }
origin: gaccettola/mortis

login ( ) : void
  {
    let payload =
    {
      userName    : this.username,
      password    : this.password
    };

    this._dataframeAccount.login ( payload ).then (

      ( value ) =>
      {
        this._app.getRootNav().setRoot(DashboardComponent);
      },
      ( error ) =>
      {
        console.log ( error );
      }

    );
  }
origin: gaccettola/mortis

// ////////////////////////////////////////////////////////////////////////
  //
  // call any initial plugins when ready

  platformReady ( )
  {
    console.log ( `::enableMenu` );

    this._platform.ready().then ( () =>
    {
      console.log ( `::enableMenu - platform.ready` );

      Splashscreen.hide();

    } );
  }
origin: SaifRehman/ICP-Airways

cancel() {
  this.navCtrl.pop();
 }
origin: SaifRehman/ICP-Airways

constructor(
  public navCtrl: NavController,
  public navParams: NavParams,
  public alertCtrl: AlertController,
  public bookingService: BookingService,
  public provider: Provider,
  public loadingCtrl: LoadingController,
  public emailService: EmailService,
  public actionSheetCtrl: ActionSheetController,
  public odmService: OdmService
 ) {
  this.data = navParams.get("item");
  console.log("this is data", this.data);
 }
origin: SaifRehman/ICP-Airways

constructor(public navCtrl: NavController, public navParams: NavParams) {
  this.values = navParams.get("item");
  console.log(this.values);
 }
origin: SaifRehman/ICP-Airways

cancel(){
  this.navCtrl.pop();
 }
origin: SaifRehman/ICP-Airways

signin() {
  this.navCtrl.pop();
 }
origin: SaifRehman/ICP-Airways

cancel() {
  this.navCtrl.pop();
 }
origin: SaifRehman/ICP-Airways

signup() {
  this.navCtrl.push(SignupPage);
 }
ionic-angular(npm)

Most used ionic-angular functions

  • Platform.ready
  • ActionSheet.present
  • ActionSheetController.create
  • Alert.present
  • AlertController.create
  • Loading.dismiss,
  • Loading.present,
  • LoadingController.create,
  • MenuController.enable,
  • Nav.getActive,
  • Nav.getActiveChildNav,
  • Nav.setRoot,
  • NavController.pop,
  • NavController.push,
  • NavController.setRoot,
  • NavParams.get,
  • ViewController.component

Popular in JavaScript

  • superagent
    elegant & feature rich browser / node HTTP with a fluent API
  • request
    Simplified HTTP request client.
  • semver
    The semantic version parser used by npm.
  • moment
    Parse, validate, manipulate, and display dates
  • readable-stream
    Streams3, a user-land copy of the stream library from Node.js
  • colors
    get colors in your node.js console
  • ws
    Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js
  • glob
    a little globber
  • express
    Fast, unopinionated, minimalist web framework
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJavascript Code Index
Get Tabnine for your IDE now