mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-29 10:40:12 +00:00
28 lines
540 B
JavaScript
28 lines
540 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, theme) {
|
|
if (!$localStorage.note) {
|
|
$localStorage.note = 'write some note';
|
|
}
|
|
this.r = $localStorage;
|
|
this.theme = theme;
|
|
|
|
this.cancel = () => {
|
|
$mdDialog.hide();
|
|
};
|
|
}
|
|
})();
|