Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export class FaxListComponent implements OnInit {
- public faxqueue: FaxQueue;
- private sub: any;
- constructor(private _faxService: FaxService, private _route: ActivatedRoute) { }
- ngOnInit() {
- this.sub = this._route.params.subscribe(params => {
- let queuename = params['id'];
- console.log('Queue: ' + queuename);
- this._faxService.getFaxQueueByName(queuename)
- .subscribe(queue => this.faxqueue = queue);
- });
- }
- }
- <p>
- fax-list works!
- </p>
- <p *ngIf="faxqueue">
- Current Queue: {{faxqueue.Display}}<br/><br/>
- {{faxqueue | json}}
- </p>
- fax-list works!
- Current Queue:
- [ { "Id": 2, "Display": "East", "Name": "Incoming Fax East", "Url": "/casefile/Incoming%20Fax%20East/" } ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement