feat(aot) - updated aot build

feat(aot) - fixed build

fix(aot) - fixed buttons and modals providers

fix(changes ) - remove unused changes
This commit is contained in:
ESadouski 2017-01-10 11:32:26 +03:00 committed by Alexander Zhukov
parent d89d176e54
commit 4112676ae9
19 changed files with 167 additions and 66 deletions

View file

@ -18,7 +18,7 @@ export class BaAmChart {
@Input() baAmChartClass:string;
@Output() onChartReady = new EventEmitter<any>();
@ViewChild('baAmChart') private _selector:ElementRef;
@ViewChild('baAmChart') public _selector:ElementRef;
constructor (private _baAmChartThemeService:BaAmChartThemeService) {
this._loadChartsLib();

View file

@ -24,7 +24,7 @@ export class BaChartistChart {
@Input() baChartistChartClass:string;
@Output() onChartReady = new EventEmitter<any>();
@ViewChild('baChartistChart') private _selector:ElementRef;
@ViewChild('baChartistChart') public _selector:ElementRef;
private chart;
@ -33,7 +33,7 @@ export class BaChartistChart {
this.onChartReady.emit(this.chart);
}
ngOnChanges() {
ngOnChanges(changes) {
if (this.chart) {
(<any>this.chart).update(this.baChartistChartData, this.baChartistChartOptions);
}

View file

@ -13,7 +13,7 @@ export class BaFullCalendar {
@Input() baFullCalendarClass:string;
@Output() onCalendarReady = new EventEmitter<any>();
@ViewChild('baFullCalendar') private _selector:ElementRef;
@ViewChild('baFullCalendar') public _selector:ElementRef;
ngAfterViewInit() {
let calendar = jQuery(this._selector.nativeElement).fullCalendar(this.baFullCalendarConfiguration);

View file

@ -18,7 +18,7 @@ export class BaPictureUploader {
onUpload:EventEmitter<any> = new EventEmitter();
onUploadCompleted:EventEmitter<any> = new EventEmitter();
@ViewChild('fileUpload') protected _fileUpload:ElementRef;
@ViewChild('fileUpload') public _fileUpload:ElementRef;
public uploadInProgress:boolean = false;

View file

@ -1,7 +1,7 @@
<div class="picture-group" [ngClass]="{uploading: uploadInProgress}">
<div class="picture-wrapper" (click)="bringFileSelector();">
<img src="{{ picture }}" *ngIf="picture">
<img src="{{ defaultPicture }}" *ngIf="!picture && defaultPicture">
<img src="{{ defaultPicture }}" ngIf="{{!picture && defaultPicture}}">
<div class="loading" *ngIf="uploadInProgress">
<div class="spinner">