Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(private i18n: I18N, private element: Element, private ea: EventAggregator, controller: ValidationController,
private trackItemService: TrackItemService) {
this.controller = controller;
this.controller.addRenderer(new MaterializeFormValidationRenderer());
ea.subscribe('i18n:locale:changed', payload => {
this.i18n.updateTranslations(this.element);
});
ValidationRules
.ensure('firstName')
.required()
.ensure('lastName')
.required()
.minLength(3)
.on(this);
this.status.chromeVersion = process.versions.chrome;
this.status.electronVersion = process.versions.electron;
this.status.nodeVersion = process.versions.node;