UNPKG

generator-angular-material-fullstack

Version:

Yeoman generator for creating MEAN stack applications, using MongoDB, Express, AngularJS, and Node

18 lines (13 loc) 427 B
'use strict' angular.module '<%= scriptAppName %>' .controller 'DialogController', ($scope, $mdDialog<% if(filters.mongoose) {%>, $http<% } %>) -> $scope.closeDialog = -> $mdDialog.hide() return <% if(filters.mongoose) { %> $scope.addThing = -> return if $scope.newThing is '' $http.post '/api/things', name: $scope.newThing $scope.newThing = '' <% } %>