ngx-feature-toggle-demo
Version:
Your module to handle with feature toggles in Angular applications easier.
17 lines (13 loc) • 422 B
text/typescript
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
({
selector: 'app-customer-detail',
template: '<p>Customer Detail: ID {{ id }}</p>',
})
export class CustomerDetailComponent implements OnInit {
id: number;
constructor(private route: ActivatedRoute) {}
ngOnInit() {
this.route.paramMap.subscribe(params => (this.id = +params.get('id')));
}
}