1. Discuss in words something you learned in class today or this week.

I learned about Modals, and how, though challenging to code, is very useful.

2. Explain the difference between an Annotation and a Decorator in Angular?

A decorator corresponds to a function that is called on the class whereas annotations are “only” metadata set on the class using the Reflect Metadata library.

3. What are the building blocks of Angular?

The main building blocks for Angular are modules, components, templates, metadata, data binding, directives, services, and dependency injection.

4. Please explain the differences between Angular and jQuery?

Jquery is a library used for DOM manipulation whereas Angular is a framework. … Jquery does not have two-way binding features whereas Angular has key features like routing, directives, two-way data binding, models, dependency injection, unit tests etc.

5. What is ngOnInit()? What's it for and what would you put in it?

Use the constructor to initialize class members and for dependency injection. Use ngOnInit for initialization work. … It is a predefined method in a TypeScript class which is called when the class is instantiated. The constructor’s purpose is to help prepare the creation of a new instance of the class.