Advertisement
Guest User

Just Take It

a guest
Jun 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. import { Component, OnInit } from '@angular/core';
  2.  
  3. @Component({
  4. selector: 'app-root',
  5. template: `
  6.  
  7. <div class=container-fluid style="margin:1%">
  8. <h1 style="color:#0056CC">
  9. {{title}}
  10. </h1>
  11.  
  12. <div class=row>
  13. <div class=col-md-2 style="border: thin solid #0056CC; padding:1%; background-color:#00AADA">
  14. <h2 style="color:#FFFFFF">
  15. Food Types:
  16. </h2>
  17.  
  18. <div style="margin-bottom:1%" data-ng-repeat="x in foodClass">
  19. <p style="float:left; color:#FFFFFF">{{x}}</p>
  20. <input type="checkbox" style="float:right">
  21. </div>
  22. <p>Name: {{hero[0].name}}</p>
  23.  
  24. <div style="margin-bottom:1%">
  25. <input type="text" name="maxQuant" style="width:100%" placeholder="Max Quantity">
  26. </div>
  27. </div>
  28.  
  29. <div class=col-md-10 style="border: thin solid #0056CC">
  30. <p>Test 2</p>
  31. </div>
  32. </div>
  33. </div>
  34. `
  35. })
  36. export class AppComponent {
  37. title:"Connect Food - Receive";
  38. hero = [{name: 'spawn'}];
  39. //foodClass = [{n:"Grain", val:true}, {n:"Meat", val:true}, {n:"Fruit", val:true}, {n:"Vegetable", val:true}, {n:"Drink", val:true}]
  40. foodClass = ['Grain', 'Meat', 'Fruit', 'Vegetable', 'Drink'];
  41. foodOther:[{n:"Perishable", val:true}, {n:"Non-Perishable", val:true}];
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement