Angular enabling/disabling modules and features upon server response
up vote
-1
down vote
favorite
Is there a common way to make some modules and features in Angular app available on server's response? For example when I pay I get access to that module or a feature. Also I'm interested in partial availability i.e. user with read-only status unable to write or delete some data.
angular server module permissions
add a comment |
up vote
-1
down vote
favorite
Is there a common way to make some modules and features in Angular app available on server's response? For example when I pay I get access to that module or a feature. Also I'm interested in partial availability i.e. user with read-only status unable to write or delete some data.
angular server module permissions
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
Is there a common way to make some modules and features in Angular app available on server's response? For example when I pay I get access to that module or a feature. Also I'm interested in partial availability i.e. user with read-only status unable to write or delete some data.
angular server module permissions
Is there a common way to make some modules and features in Angular app available on server's response? For example when I pay I get access to that module or a feature. Also I'm interested in partial availability i.e. user with read-only status unable to write or delete some data.
angular server module permissions
angular server module permissions
asked Nov 21 at 14:09
Sergey
834317
834317
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
For modules you have guards. In essence https://angular.io/api/router/CanActivate. Unability to write / delete etc doesn't have a single default implementation. There are libraries out there, but frankly it's not a hard directive to create.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
For modules you have guards. In essence https://angular.io/api/router/CanActivate. Unability to write / delete etc doesn't have a single default implementation. There are libraries out there, but frankly it's not a hard directive to create.
add a comment |
up vote
0
down vote
For modules you have guards. In essence https://angular.io/api/router/CanActivate. Unability to write / delete etc doesn't have a single default implementation. There are libraries out there, but frankly it's not a hard directive to create.
add a comment |
up vote
0
down vote
up vote
0
down vote
For modules you have guards. In essence https://angular.io/api/router/CanActivate. Unability to write / delete etc doesn't have a single default implementation. There are libraries out there, but frankly it's not a hard directive to create.
For modules you have guards. In essence https://angular.io/api/router/CanActivate. Unability to write / delete etc doesn't have a single default implementation. There are libraries out there, but frankly it's not a hard directive to create.
answered Nov 21 at 15:21
Arne
499212
499212
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53413918%2fangular-enabling-disabling-modules-and-features-upon-server-response%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown