СК
или не получилось...
Size: a a a
СК
Y
Y
Y
Y

A
S
A
YT
NO
this.router.events.subscribe((e: RouterEvent) => {
if (e instanceof ActivationEnd) {
this.isFormOpened = Boolean(
e.snapshot.url
&& e.snapshot.url.findIndex(u => u.path === 'add') !== -1);
console.log(this.isFormOpened);
}
});FormOpened = true, а потом сразу же falseNO
S
this.router.events.subscribe((e: RouterEvent) => {
if (e instanceof ActivationEnd) {
this.isFormOpened = Boolean(
e.snapshot.url
&& e.snapshot.url.findIndex(u => u.path === 'add') !== -1);
console.log(this.isFormOpened);
}
});FormOpened = true, а потом сразу же falseS
NO
J
J
IM
AB
ЕЛ
ЕЛ