add angular 2

This commit is contained in:
chsakell
2016-09-26 10:49:50 +03:00
parent 05c81a3cb9
commit 53e0dd8685
10 changed files with 261 additions and 2 deletions

6
app/app.component.ts Normal file
View File

@@ -0,0 +1,6 @@
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: '<h1>My First Angular App</h1>'
})
export class AppComponent { }

9
app/app.module.ts Normal file
View File

@@ -0,0 +1,9 @@
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
@NgModule({
imports: [BrowserModule],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule { }

6
app/main.ts Normal file
View File

@@ -0,0 +1,6 @@
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
const platform = platformBrowserDynamic();
platform.bootstrapModule(AppModule);