你能否告诉我为什么警告在点击按钮时会显示两次?
这是我的傻瓜 http://plnkr.co/edit/vtmYAG2d1gmnPjnxovJw?p=preview
/*global define, console */
define(['app'], function(app){
'use strict';
app.controller('LoginCtrl', ['$scope', function($scope) {
$scope.login = function () {
alert("Login is clicked")
};
}]);
});
Run Code Online (Sandbox Code Playgroud) require angularjs angularjs-directive angularjs-scope ionic-framework