logo

Angular Framework - Documentation and Code Snippets

Angular is a Javascript framework. Javascript can run on server-side as NodeJS which is build upon V8 engine, which backed by Google.

Bootstrapping

import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
platformBrowserDynamic().bootstrapModule(AppModule);

Bootstraps the app, using the root component from the specified NgModule.

NgModules

import { NgModule } from '@angular/core';
@NgModule({ declarations: ..., imports: ...,
exports: ..., providers: ..., bootstrap: ...})
class MyModule {}
                

Defines a module that contains components, directives, pipes, and providers.