Embed presentation
Download to read offline



























![var mainApp = angular.module("mainApp", []);
mainApp.factory('MathService', function() {
var factory = {};
factory.multiply = function(a, b) {
return a * b
}
return factory;
});](https://image.slidesharecdn.com/ng-init-160224213035/85/Ng-init-EPI-Sousse-28-320.jpg)

![app.provider("message", [function () {
var text = null;
this.setText = function (textString) {
text = textString;
};
this.$get = function(){
return new Message();
}
}]);
angular.module("root", ["services"])
.config(["messageProvider", function (messageProvider) {
messageProvider.setText("Hello world!");
}]);](https://image.slidesharecdn.com/ng-init-160224213035/85/Ng-init-EPI-Sousse-30-320.jpg)










The document discusses key concepts in AngularJS including directives, data binding, modules, controllers, dependencies, services, and routing. It provides code examples to demonstrate how to set up a basic AngularJS app with directives, controllers, and services. It also discusses using AngularJS for single page applications and connecting to REST APIs.



























![var mainApp = angular.module("mainApp", []);
mainApp.factory('MathService', function() {
var factory = {};
factory.multiply = function(a, b) {
return a * b
}
return factory;
});](https://image.slidesharecdn.com/ng-init-160224213035/85/Ng-init-EPI-Sousse-28-320.jpg)

![app.provider("message", [function () {
var text = null;
this.setText = function (textString) {
text = textString;
};
this.$get = function(){
return new Message();
}
}]);
angular.module("root", ["services"])
.config(["messageProvider", function (messageProvider) {
messageProvider.setText("Hello world!");
}]);](https://image.slidesharecdn.com/ng-init-160224213035/85/Ng-init-EPI-Sousse-30-320.jpg)








