AngularJs创建一个带参数的自定义方法
学习这篇之前,先要从这篇《AngularJs创建自定义Service》http://www.cnblogs.com/insus/p/6773894.html
app.controller('ctrl1', ['$scope', function ($scope) { $scope.Hi = function (name) { return "Hi " + name; }; }]);
学习这篇之前,先要从这篇《AngularJs创建自定义Service》http://www.cnblogs.com/insus/p/6773894.html
app.controller('ctrl1', ['$scope', function ($scope) { $scope.Hi = function (name) { return "Hi " + name; }; }]);