- Controller
- It is just a java script function.
- It contains data.
- It specifies the behavior.
- It should contain only the business logic needed for a single view.
- Scope
- An object that refer to the application model
- An execution context for expression like {{animal.property}}
- Scopes are arranged in hierarchical structure which mimic the DOM structure of the application.
- Scopes can watch expressions and propagate events.
- Model
- It is just a java script object.
- Model represent an object with some key and value.
- View
- View is nothing but just the HTML.
- Services
- Services in Angular JS are singleton.
- It is used to perform the common task between the controllers.
- We can access the common task between the controllers using services.
- Angular JS have some built in services that start with a symbol $.
- Directives
- Directives are used to remove the code duplication.
- You can define you your own directive and use that according to your requirement.
- 'ng' prefix in Angular JS stands for built in directives like ng-app, ng-model etc.
- Filters
- It is used to filter the result according to user requirements.
- You can also format your result using filters.
- Routing
- It is used to configure the navigations.
- You can go from one page to another using routing.
Tuesday, 11 March 2014
Angular JS Features.
Best IDE For Angular JS
Many peoples working on Angular JS want some best IDE which support Angular JS. I was also searching for the IDE which support Angular JS. After a lot of searching i came across Jet Brain Webstrome and Intellij Idea . These two IDE support Angular JS and performs best of all others. Specially if you want to work on client side web application Jet BrainsWebstrome is best to work with.
Good Luck
Good Luck
Angular JS Interview Questions.
Here is some of the interview questions which you might be looking for then must must go through all .
For the answers and for more questions you can refer this link Angular JS Interview Questions You can ask you question there.
For the answers and for more questions you can refer this link Angular JS Interview Questions You can ask you question there.
- Difference between Angular JS and JQUERY ?
- What are the key features of Angular JS ?
- How can you define scope in Angular JS ?
- What is controller in Angular JS ?
- What is Model in Angular JS ?
- What is view in Angular JS ?
- What is Services in Angular JS ?
- What is data binding in Angular JS ?
- What is directives in Angular JS ?
- What is Filter in angular JS ?
- How can you perform Validation in Angular JS ?
- How can you test your code in Angular JS ?
- How can you perform Routing in Angular JS ?
- How can you compare Angular JS with Backbone JS ?
- How will you loops through a collection and List in Angular JS ?
- How will you parse a JSON response in Angular JS ?
Monday, 9 December 2013
Difference between using Context Object and Request Object with the RequestDispatcher
Context Object with RequestDispatcher |
Request Object With RequestDispatcher |
1. Using Context object with the getRequestDispatcher() its mandatory to write url starting with " / " . |
1. Using Request object with the getRequestDispatcher(), its not mandatory to use " / " before url.
|
2. It uses the context path of the URI.
|
2. It uses the context path if we write " / " before url and if we are not writing " / " then the request will be forwarded using relative path. |
3. If we are not writing " / " before
url then container will throw IllegalArgumentException exception " This given path is invalid, since it doesn't start with / " . |
3. If we are not writing " / " before url then it forward the request using relative path. |
4. For ex-
RequestDispatcher rd = getServletContext(). getRequestDispatcher("/url"); |
4. For ex- RequestDispatcher rd = getServletContext(). getRequestDispatcher("/url"); or RequestDispatcher rd = getServletContext(). getRequestDispatcher("url") ; |
Tuesday, 3 December 2013
Difference between Shallow and Deep Cloning
Shallow Cloning |
Deep Cloning |
1. It is a default cloning and can be done by using clone() method. |
1.It is done by the user itself by writing the code for the deep cloning.
|
2. Shallow cloning fails to clone object members.
|
2. Using deep cloning we can able to clone object member also . |
Monday, 2 December 2013
Difference between include and forward of RequestDispatcher in Servlet
include() |
forward() |
1. It is used to include the response to the source servlet. |
1. It is used to forward the request to the other servlet or JSP page.
|
2. Response get committed after including all other resources(servlet/JSP) responses.
|
2. Response get committed by the RequestDispatcher object and also close the response stream.
|
3. A servlet class can have multiple include statement to execute.
|
3. A servlet class can have multiple forward statement conditionally but will execute only one.
|
4. After executing include() control will back to the source servlet and will add information to response object.
|
4. After executing forward() control will
back to the source servlet but other informations cannot be added to that response object. |
Wednesday, 27 November 2013
Difference between Static and dynamic polymorphism
Static Polymorphism |
Dynamic Polymorphism |
1. It is otherwise called as compiler-time polymorphism. |
1.It is otherwise called as run-time polymorphism.
|
2. Overloading is used to achieve this.
|
2.Both overriding and dynamic dispatch is used to achieve this. |
3. It is also called as static binding as compiler is binding the method with the object based on the argument.
|
3. It is called as dynamic binding as JVM will decide from which class the method will be executed based on the object assign. |
4.Static method can be overloaded. |
4. Static method never follow dynamic dispatch concept.
|
5. All works are done at the compilation time by the compiler that's why called as static binding. |
5. All works are done at the run-time by the JVM that's why called as dynamic binding.
|
6. It is achieved by the compiler at the compile time. |
5. It is achieved by the JVM at the run-time.
|
Subscribe to:
Posts (Atom)