ChapterOne Flashcards
What is angularJS?
It is a superheroic JS MVC FRAMEWORK. You only need HTML and JS to do all the work.
What is the core concept behind angular js framework?
The MVC architectural pattern.
What is this MVC arhitectural pattern?
It divides app into three parts :
1. Model : driving force of the application. Data behind the application usually fetched from the server.
2. View : UI that the user sees and interacts with.
3. Controller : Presenter. It is responsible for deciding which parts of the model to display the view..
IT SPLITS RESPONSIBILITY.
BUT what is the real benefit?
since it splits the responsibility, each unit is responsible for one and only one thing.Easy to figure out codes and to figure out where the code belongs.
each unit is independent from the others. Makes the code modular and reuseable and also maintainable.
Name the five core beliefs that enables developers to rapidly create large, complex applications with ease
- Databinding
- Declarative
- MVC
- Dependency Injection
- Exensible?
What are modules
packages.
What are the two parts of modularjs?
part one- they can define its own controllers, services, factories and directives. So functions and codes can be accessed throughout the module. Part two: the module can depend upon other modules as dependencies.
Define a module name notes app.
angular.module('notesapp', {}); [] - array on module names that this module depends on. if empty = no dependecny.
How would you load preexisting notesapp?
angular.module(‘notesapp’);
What’s the use of ng-bind vs double curlies?
ng-bind - no curlies for a brief second