Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ngOnInit() {
this.actions
.pipe(ofActionSuccessful(StartLoader, StopLoader), filter(this.filter), takeUntilDestroy(this))
.subscribe((/**
* @param {?} action
* @return {?}
*/
action => {
if (action instanceof StartLoader)
this.startLoading();
else
this.stopLoading();
}));
this.router.events
.pipe(filter((/**
* @param {?} event
* @return {?}
*/
event => event instanceof NavigationStart || event instanceof NavigationEnd || event instanceof NavigationError)), takeUntilDestroy(this))
function () {
var _this = this;
fromEvent(this.el.nativeElement, 'input')
.pipe(debounceTime(this.debounce), takeUntilDestroy(this))
.subscribe((/**
* @param {?} event
* @return {?}
*/
function (event) {
_this.debounceEvent.emit(event);
}));
};
/**
ngOnInit(): void {
fromEvent(this.el.nativeElement, 'input')
.pipe(
debounceTime(this.debounce),
takeUntilDestroy(this)
)
.subscribe((event: Event) => {
this.debounceEvent.emit(event);
});
}
}
function () {
var _this = this;
fromEvent(this.el.nativeElement, 'input')
.pipe(debounceTime(this.debounce), takeUntilDestroy$1(this))
.subscribe((/**
* @param {?} event
* @return {?}
*/
function (event) {
_this.debounceEvent.emit(event);
}));
};
InputEventDebounceDirective.decorators = [
function () {
var _this = this;
fromEvent(this.el.nativeElement, 'click')
.pipe(takeUntilDestroy$1(this))
.subscribe((/**
* @param {?} event
* @return {?}
*/
function (event) {
event.stopPropagation();
_this.stopPropEvent.emit(event);
}));
};
ClickEventStopPropagationDirective.decorators = [
ngOnInit(): void {
this.form = this.fb.group(
{
password: ['', required],
newPassword: ['', required],
repeatNewPassword: ['', required],
},
{
validators: [comparePasswords(PASSWORD_FIELDS)],
},
);
}
ngOnInit() {
this.form = this.fb.group({
password: ['', required],
newPassword: ['', required],
repeatNewPassword: ['', required],
}, {
validators: [comparePasswords(['newPassword', 'repeatNewPassword'])],
});
}
/**
ngOnInit() {
this.form = this.fb.group({
password: ['', required],
newPassword: ['', required],
repeatNewPassword: ['', required],
}, {
validators: [comparePasswords(PASSWORD_FIELDS)],
});
}
/**
function () {
var _this = this;
this.actions
.pipe(ofActionSuccessful(StartLoader, StopLoader), filter(this.filter), takeUntilDestroy(this))
.subscribe((/**
* @param {?} action
* @return {?}
*/
function (action) {
if (action instanceof StartLoader)
_this.startLoading();
else
_this.stopLoading();
}));
this.router.events
.pipe(filter((/**
* @param {?} event
* @return {?}
*/
function (event) {
ofActionSuccessful(StartLoader, StopLoader),
filter(this.filter),
takeUntilDestroy(this),
)
.subscribe(action => {
if (action instanceof StartLoader) this.startLoading();
else this.stopLoading();
});
this.router.events
.pipe(
filter(
event =>
event instanceof NavigationStart || event instanceof NavigationEnd || event instanceof NavigationError,
),
takeUntilDestroy(this),
)
.subscribe(event => {
if (event instanceof NavigationStart) this.startLoading();
else this.stopLoading();
});
}