I
I
Isherath2018-07-05 23:03:34
Angular
Isherath, 2018-07-05 23:03:34

AngularJS + Yii2 access to pages, resources and actions. How?

I've been tinkering with these two frameworks for the second week and, for the life of me, I don't understand how to check the user.
Angular on a domain, yii2 on a subdomain.
I need to prevent unlogged users from going to multiple pages in Angular. At the same time, some pages are not tied to the resources that the server gives when you go to them. They just need to be hidden before logging in.
Also, you need to somehow define the rights to access various actions on the server side.
Stupidly I do not understand how to do it. Even in the docks it is not written what and how to do. Tell me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick Murzin, 2018-07-05
@R0s0maxa

Isn't it?
https://angular.io/guide/router#milestone-5-route-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question