import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: ` <h2>Number Spinner</h2> <div style="margin-bottom:10px"> <label [for]="n1" align="top">Increment:</label> <eui-numberbox #n1 [increment]="10" [value]="100"></eui-numberbox> </div> <div style="margin-bottom:10px"> <label [for]="n2" align="top">Range:</label> <eui-numberbox #n2 [increment]="10" [value]="100" [min]="10" [max]="200"></eui-numberbox> </div> ` }) export class AppComponent { }
import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { BrowserModule } from '@angular/platform-browser'; import { HttpModule } from '@angular/http'; import { EasyUIModule } from 'easyui/easyui/easyui.module'; import { AppComponent } from './app.component'; @NgModule({ bootstrap: [ AppComponent ], declarations: [ AppComponent ], imports: [ FormsModule, BrowserModule, HttpModule, EasyUIModule ] }) export class AppModule { }
import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app.module'; enableProdMode(); platformBrowserDynamic().bootstrapModule(AppModule);