Advertisement
desdemona

app.js

Dec 14th, 2014
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function () {
  2.     var app = angular.module('taskManager', [ ]);
  3.     app.controller('TaskManagerController', function () {
  4.         this.task = tasks;
  5.     });
  6.     app.controller('PanelController', function () {
  7.         this.tab = 1;
  8.         this.selectTab = function (setTab) {
  9.             this.tab = setTab;
  10.         };
  11.         this.isSelected = function (checkTab) {
  12.             return this.tab === checkTab;
  13.         };
  14.  
  15.     });
  16.  
  17.     var tasks = [
  18.         {
  19.             name: 'feed dog',
  20.             time: '1388123412323',
  21.             description: ' Fido is hungry',
  22.             done: false,
  23.             disabled: false
  24.         },
  25.  
  26.         {
  27.             name: 'do dishes',
  28.             time: '1389123412323',
  29.             description: '. . .',
  30.             done: false,
  31.             disabled: false
  32.         }
  33.     ];
  34.  
  35. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement