ng-submit在angularjs中不起作用
- 论坛
- ng-submit在angularjs中不起作用
19 浏览
ng-submit在angularjs中不起作用
我的观点:
添加地点
我的控制器:
angular.module('mean').controller('LocationController', ['$scope', '$location', '$rootScope', 'LocationService', '$modal', '$routeParams', function ($scope, $location, $rootScope, LocationService, $modal, $routeParams) { $scope.createLocation = function() { alert('afds'); LocationService.create(this).then(function(response) { console.log(response); }); } }]);
然而,当我点击保存时,我没有收到警告。不确定发生了什么。