Please enable JavaScript.
Coggle requires JavaScript to display documents.
Angularjs (Controller ((((var variablename = angular.module(''…
Angularjs
Controller
var variablename = angular.module(''modulename",[dependencies]);
variablename.controller('controllername',[dependencies])
-
-
variablename.controller('controllername',[dependencies])
-
Services
module.service(‘serviceName’, function);
-
-
-
Factory
module.factory('factoryName', function);
You just create an object, add properties to it, then return that same object.When you pass this service into your controller, those properties on the object will now be available in that controller through your factory.
-
Directive
angular.directive('myservice',function($scope){ })
-
-
-
-