mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
25 lines
545 B
TypeScript
25 lines
545 B
TypeScript
import { ActivatedRoute } from '@angular/router';
|
|
import { Component, OnInit } from '@angular/core';
|
|
import { NavController } from '@ionic/angular';
|
|
|
|
@Component({
|
|
selector: 'app-tabs-tab1-nested',
|
|
templateUrl: './tabs-tab1-nested.component.html',
|
|
})
|
|
export class TabsTab1NestedComponent implements OnInit {
|
|
id = '';
|
|
constructor(
|
|
private route: ActivatedRoute,
|
|
public navCtrl: NavController
|
|
) { }
|
|
|
|
ngOnInit() {
|
|
this.id = this.route.snapshot.paramMap.get('id');
|
|
}
|
|
|
|
next() {
|
|
return parseInt(this.id, 10) + 1;
|
|
}
|
|
|
|
}
|