How it works
Logo@2xLogo mindzip color
Login

Sergio Bernal

ft
00Follow
FollowingFollowers

Quotes
20

Webpack has become the defacto standard when building Angular applications, you can check an introduction to Webpack post here on the Angular documentation.
1
Angular 2+ foundations
System.js System was heavily used in the beginning whilst Angular was being built and during the release candidate stages before official release, however the team have switched to advocating Webpack instead due to it being much more powerful.
1
Angular 2+ foundations
Angular CLI The Angular CLI was built to help scaffold new projects, create components and help with deployment. Underneath it utilises Webpack for you.
1
Angular 2+ foundations
The basic building blocks of an Angular application are NgModules, which provide a compilation context for components.
1
Angular 2+ foundations
An Angular app is defined by a set of NgModules.
1
Angular 2+ foundations
An app always has at least a root module that enables bootstrapping, and typically has many more feature modules.
1
Angular 2+ foundations
Components define views, which are sets of screen elements.
1
Angular 2+ foundations
Components use services, which provide specific functionality not directly related to views.
1
Angular 2+ foundations
Service providers can be injected into components as dependencies, making your code modular, reusable, and efficient.
1
Angular 2+ foundations
Both components and services are simply classes, with decorators that mark their type and provide metadata that tells Angular how to use them.
1
Angular 2+ foundations
Metadata is a way of processing the class. A class will be a class unless we tell Angular that is a Component, Service etc. Decorators that mark their type and provide the metadata that tells Angular how to use them.
1
Angular 2+ foundations
The metadata for a component class associates it with a template that defines a view.
1
Angular 2+ foundations
The metadata for a service class provides the information Angular needs to make it available to components through dependency injection (DI).
1
Angular 2+ foundations
Angular provides the Router service to help you define navigation paths among views.
1
Angular 2+ foundations
An NgModule declares a compilation context for a set of components that is dedicated to an application domain, a workflow, or a closely related set of capabilities.
1
Angular 2+ foundations
NgModules can import functionality from other NgModules, and allow their own functionality to be exported and used by other NgModules. For example, to use the router service in your app, you import the Router NgModule.
1
Angular 2+ foundations
Organising your code into distinct functional modules helps in managing development of complex applications. This technique lets you take advantage of lazy-loading—that is, loading modules on demand—
1
Angular 2+ foundations
Every Angular app has a root module, conventionally named AppModule, which provides the bootstrap mechanism that launches the application.
1
Angular 2+ foundations
A template combines ordinary HTML with Angular directives and binding markup that allow Angular to modify the HTML before rendering it for display.
1
Angular 2+ foundations
Angular |-- App1 | |-- Module (root App BS module) | |-- * View * (n) | +-- Component | +-- Template | |-- Service (n) | |-- Module (n) |-- App2 (n)
Angular 2+ foundations

We use cookies to understand our websites traffic and offer our website visitors personalized experience. To find out more, click ‘More Information’. In addition, please, read our Privacy policy.