super-productivity/app/scripts/dialogs/notes/notes-c.js
2017-02-04 19:58:09 +01:00

29 lines
535 B
JavaScript

/**
* @ngdoc function
* @name superProductivity.controller:NotesCtrl
* @description
* # NotesCtrl
* Controller of the superProductivity
*/
(function () {
'use strict';
angular
.module('superProductivity')
.controller('NotesCtrl', NotesCtrl);
/* @ngInject */
function NotesCtrl($mdDialog, $localStorage) {
if (!$localStorage.note) {
$localStorage.note = 'write some note';
}
this.r = $localStorage;
console.log(this.r);
this.cancel = () => {
$mdDialog.hide();
};
}
})();