Below are few popular terms used in Angular JS.
1. We call what AngularJS is MV*
When you see ng- in the HTML, that’s really a custom attribute and angularJS is using the fact that the browser DOM the memory has that available to then make decisions based on what it sees in those attributes, the value of those attributes.
Encapsulation is making sure that we’re not polluting the global namespace, is a very important aspect of building extensible, reusable and complex software. So AngularJS makes this a fundamental part of its structure. When you build an AngularJS app, you’re going to see that there are certain elements and structural concepts that have the goal of not polluting the global namespace. Making sure that variables and functions that are defined don’t collide and contradict variables and functions defined elsewhere.
4. Dependency Injection
Dependency injection is giving a function an object. Rather than creating an object inside a function, you pass it to the function.
Scope is a big part of the things that binds the model to the view. It’s called Scope, and it’s an object from something called the Scope service, and it involves dependency injection. You can add Variables and Functions to the scope. Now the scope then becomes that middle piece, that piece between the view and the Controller.
Angular services are singleton objects that get instantiated only once during the lifetime of an application. The main objective of a service is to organize and share business logic, models, or data and functions with different components of an Angular application.
Dependencies is a list of modules that myApp uses, or is dependent on. So if I want to use this ngMessages module, I have to include it in this list. And if there are others, I would just keep adding them in strings.
var myApp = angular.module("myApp", ['ngMessages', 'someOtherModule']);