mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-27 18:34:08 +01:00
build(dependencies): replace ng2-bootstrap with ng-bootstrap (#951)
This commit is contained in:
parent
49ff10e09f
commit
56638e7584
5 changed files with 52 additions and 47 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue