August 2017
Intermediate to advanced
330 pages
7h 26m
English
Ionic 3 works by creating pages similar to Angular components and the template URL concept, but, in this case, they are navigated by the Push and Pop concept.
We can reuse most of the app.component.ts code from the previous section; copy the following code in home.ts:
import { PacktService } from './../../providers/packt-service'; import { Contacts } from './../../providers/contacts.class'; import { Component } from '@angular/core'; import { FormGroup, FormBuilder, Validators} from '@angular/forms'; import { NavController } from 'ionic-angular'; @Component({ selector: 'page-home', templateUrl: 'home.html' }) export class HomePage { title = 'Ionic 2 with ASP.NET Core Web API'; recordsExists: boolean = false; formAddEdit:boolean ...