Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@Input()
canPublish: boolean;
@Input()
measureBeingSent: boolean | undefined;
@Output()
publishEvent: EventEmitter = new EventEmitter();
@Output()
deleteEvent = new EventEmitter();
displaySeries: Measure[];
deploy = false;
measureType = MeasureType;
measureSeriesMessageMapping = {
'=1': _('HISTORY.MEASURE_SERIES.SINGULAR'),
other: _('HISTORY.MEASURE_SERIES.PLURAL')
};
constructor() {}
ngOnInit() {}
DeploySeries(event: Event, measure: MeasureSeries) {
event.stopPropagation();
this.deploy = !this.deploy;
this.displaySeries = measure.measures;
}
publish(event: Event) {
event.stopPropagation();
this.publishEvent.emit(this.measure);
}
measure: Measure | MeasureSeries;
@Input()
canPublish: boolean;
@Input()
measureBeingSent: boolean | undefined;
@Output()
publishEvent: EventEmitter = new EventEmitter();
@Output()
deleteEvent = new EventEmitter();
displaySeries: Measure[];
deploy = false;
measureType = MeasureType;
measureSeriesMessageMapping = {
'=1': _('HISTORY.MEASURE_SERIES.SINGULAR'),
other: _('HISTORY.MEASURE_SERIES.PLURAL')
};
constructor() {}
ngOnInit() {}
DeploySeries(event: Event, measure: MeasureSeries) {
event.stopPropagation();
this.deploy = !this.deploy;
this.displaySeries = measure.measures;
}
publish(event: Event) {
event.stopPropagation();
this.publishEvent.emit(this.measure);
import {Component} from '@angular/core';
import {TranslateService} from '@ngx-translate/core';
import {_} from '@biesbjerg/ngx-translate-extract/dist/utils/utils';
import defaultLanguage from "./../assets/i18n/en.json";
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
fromCode = _('demo.text-in-code');
constructor(private translate: TranslateService) {
translate.setTranslation('en', defaultLanguage);
translate.setDefaultLang('en');
}
useLanguage(language: string) {
this.translate.use(language);
}
}