build(dependencies): replace ng2-bootstrap with ng-bootstrap (#951)

This commit is contained in:
AlbertXingZhang 2017-04-11 01:41:36 -07:00 committed by Lex Zhukov
parent 49ff10e09f
commit 56638e7584
5 changed files with 52 additions and 47 deletions

View file

@ -1,13 +1,21 @@
<div class="raiting-box">
<div class="col-md-4">
<rating [(ngModel)]="_rate1" max="{{_max1}}" stateOn="ion-android-star" stateOff="ion-android-star-outline"
class="rating"></rating>
<ngb-rating [(ngModel)]="_rate1" max="{{_max1}}" class="rating">
<ng-template let-fill="fill">
<i *ngIf="fill === 100" class="ion-android-star"></i>
<i *ngIf="fill === 0" class="ion-android-star-outline"></i>
</ng-template>
</ngb-rating>
<span class="help-block">Rate: {{_rate1}}</span>
</div>
<div class="col-md-8">
<rating [(ngModel)]="_rate2" max="{{_max2}}" stateOn="ion-ios-heart" stateOff="ion-ios-heart-outline"
class="rating"></rating>
<ngb-rating [(ngModel)]="_rate2" max="{{_max2}}" class="rating">
<ng-template let-fill="fill">
<i *ngIf="fill === 100" class="ion-ios-heart"></i>
<i *ngIf="fill === 0" class="ion-ios-heart-outline"></i>
</ng-template>
</ngb-rating>
<span class="help-block">Rate: {{_rate2}}</span>
</div>
</div>

View file

@ -2,10 +2,10 @@ import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule as AngularFormsModule } from '@angular/forms';
import { NgaModule } from '../../theme/nga.module';
import { NgbRatingModule } from '@ng-bootstrap/ng-bootstrap';
import { routing } from './forms.routing';
import { RatingModule } from 'ng2-bootstrap';
import { Forms } from './forms.component';
import { Inputs } from './components/inputs';
import { Layouts } from './components/layouts';
@ -28,7 +28,7 @@ import { WithoutLabelsForm } from './components/layouts/components/withoutLabels
CommonModule,
AngularFormsModule,
NgaModule,
RatingModule.forRoot(),
NgbRatingModule,
routing
],
declarations: [