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