Angular2 JavaScript framework application: https://mykemtende.stackblitz.io/
import './polyfills';
import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
platformBrowserDynamic().bootstrapModule(AppModule);
platformBrowserDynamic().bootstrapModule(AppModule).then(ref => { // Ensure Angular destroys itself on hot reloads. if (window['ngRef']) { window['ngRef'].destroy(); } window['ngRef'] = ref;
// Otherise, error }).catch(err => console.error(err));
import { Component } from '@angular/core';
@Component({ selector: 'my-app', templateUrl: './adduser/adduser.component.html', styleUrls: [ './app.component.css' ] }) export class AppComponent { name = 'Angular '; }