HomePageActionExpander

Expands:

$applicationRoot.directory$/native/ionic/src/app/pages/home/home.page.ts

if:

true
property value
element type ApplicationInstance
qualified name net.democritus.expander.ionic.applicationinstance.page.HomePageActionExpander
layer ROOT
technology COMMON
sourceType JS
phase expansion
features  

Example

Some example of the content generated by the expander:

import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { Storage } from '@ionic/storage';

// anchor:custom-imports:start
// anchor:custom-imports:end

@Component({
  selector: 'app-home',
  templateUrl: './home.page.html',
  styleUrls: ['./home.page.scss'],
})
export class HomePage implements OnInit {

  userName: string;
  // anchor:custom-attributes:start
  // anchor:custom-attributes:end

  constructor(
    private router: Router,
    private storage: Storage,
    // anchor:custom-constructor-fields:start
    // anchor:custom-constructor-fields:end
  ) { }

  ngOnInit() {
    this.storage.get('euRent_USER_INFO').then(response => {
      if (response) { this.userName = response.user.fullName; }
    });
    // anchor:custom-init-methods:start
    // anchor:custom-init-methods:end
  }


  // anchor:custom-methods:start
  // anchor:custom-methods:end

}