Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. import { Component, Input, OnInit } from '@angular/core'
  2. import { FORM_DIRECTIVES } from '@angular/common';
  3.  
  4. @Component({
  5. selector: 'extractorQueueDetails',
  6. directives: [FORM_DIRECTIVES],
  7. providers: [CacheDataService, HTTP_PROVIDERS],
  8. templateUrl: './HTML/Admin/ExtractorQueueDetails.html'
  9. })
  10. export class ExtractorQueueDetails {
  11.  
  12. resultData: ExtractorQueueItem;
  13. sampleData: Sample;
  14.  
  15. constructor() {
  16. console.log("ExtractorQueueDetails component is loaded");
  17.  
  18. this.sampleData = { queueId: 123, name: "Krishnan" };
  19. }
  20.  
  21.  
  22. public LoadExtractorQueueDetails() {
  23. console.log("in LoadExtractorQueueDetails of ExtractorQueueDetails");
  24.  
  25. this.sampleData = { queueId: 456, name: "Krishnan123" };
  26.  
  27. console.log(this.sampleData);
  28. }
  29. }
  30.  
  31. <input type="text" name="txtQueueID" class="form-control" id="txtQueueID" [(ngModel)]="sampleData.queueId" />
  32. <input type="text" name="Description" class="form-control" [(ngModel)]="sampleData.name" id="Description" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement