Angular Flashcards
What is the class that Angular provides to make http requests?
HttpClient
Which is the packaga that contains the class HttpClient?
@angular/common/http
Which is the interface over HttpClient relies?
XMLHttpRequest
What are the basic building blocks of Angular?
Angular components
What are Angular NgModules?
NgModules contain Angular Components. They collect related code into functional sets. An application always has at least a root module.
They define views, which are sets of screen elements that Angular can choose among and modify according to your program logic and data
Components
They can be injected into components as dependencies, making your code modular, reusable, and efficient.
Service Providers
What are services?
They are for data or logic that isn’t associated with a specific view, and that you want to share across components.
What is injection decorator for?
The decorator provides the metadata that allows other providers to be injected as dependencies into your class. A service class definition is immediately preceded by the @Injectable() decorator.
what is Dependency injection (DI) for?
Dependency injection (DI) lets you keep your component classes lean and efficient. They don’t fetch data from the server, validate user input, or log directly to the console; they delegate such tasks to services.
Que es un decorador?
Un decorador agrega metadata a un componente, como por ejemplo la plantilla que debe quedar asociada.
List some Angular decorators
@Component()
@Directive()
@Pipe()
@Injectable()
@NgModule()
List the forms of Angular Binding
Interpolation
Property binding
Event binding
Attribute binding
Class and style binding
Two-way data binding with ngModel
Cómo se inicia un proyecto Angular?
npm install -g @angular/cli
ng new <my-app></my-app>
Cómo se ejecuta un proyecto Angular?
Navegar hasta la carpeta de la aplicación
ejecutar: “ng serve - - open”
Que signfica el prefijo ng en las directivas Angular?
ng funciona cómo apreviatura para Angular, mas que quedo desde el punto de vista de la pronunciación. También pudo haber sido pensado como ng = new generation.
Que elementos se configuran al usar “ng new”?
Angular routing
Style format como CSS, SCSS, SASS o LESS