Router can activate more than 1 guard

Does angular (v 4.1.1) use a router with canActivatemore than one function

{
   path: '',
   component: SomeComponent,
   canActivate: [guard1, guard2, ...]
}

should there be something like that? If not for them, why would it be on the list, if he proposed to take only one guard

Since I have something similar, and although it guard1returns false, guard2it will still execute.

Thanks in advance

Angular 4.1.1

+4
source share
1 answer

, , . , . , , , "".

, , , . , , , .

+3

Source: https://habr.com/ru/post/1679440/


All Articles