super-productivity/app-src/scripts/dialogs/notes/notes-c.js
Johannes Millan 9572515c4e cleanup
2017-02-09 14:04:31 +01:00

27 lines
509 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;
this.cancel = () => {
$mdDialog.hide();
};
}
})();