-
Notifications
You must be signed in to change notification settings - Fork 128
Migration guide 0.1 to 1.x
AlexKhymenko edited this page Aug 24, 2017
·
1 revision
Prevent name collision in Your application. Add Prefix ngx to everything
Remove permissions
directive cause it was not usable. Will not break anything Angular will just ignore it.
The reasoning if you want to use [permissions]
as input in another component it will show error can't find template error
.
from
<ng-template permissions [permissionsOnly]="['ADMIN', 'GUEST']">
<div>You can see this text congrats</div>
</div>
<div *permissionsExcept="['ADMIN', 'GUEST']">
<div>You can see this text congrats</div>
</div>
to
<ng-template [ngxPermissionsOnly]="['ADMIN', 'GUEST']">
<div>You can see this text congrats</div>
</div>
<div *ngxPermissionsExcept="['ADMIN', 'GUEST']">
<div>You can see this text congrats</div>
</div>
Add Ngx
Prefix to service name
PermissionsService > NgxPermissionsService
RolesService > NgxRolesService
PermissionsGuard > NgxPermissionsGuard
Add Ngx
Prefix to directive name
PermissionsDirective > NgxPermissionsDirective
Thank You for using the library and support 🌟 . HAVE A GREAT DAY!