Skip to content

Commit

Permalink
Fix unmodule error with aot
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Khymenko authored and Oleksandr Khymenko committed Jan 23, 2018
1 parent e7249fa commit 5a0b73a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-permissions",
"version": "3.2.0",
"version": "3.2.1",
"scripts": {
"build": "gulp build",
"build:watch": "gulp",
Expand Down
31 changes: 30 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { NgxPermissionsGuard } from './router/permissions-guard.service';
import { NgxRolesService, USE_ROLES_STORE } from './service/roles.service';
import { NgxPermissionsStore } from './store/permissions.store';
import { NgxRolesStore } from './store/roles.store';
import { NgxPermissionsAllowStubDirective } from './testing/permissions-allow.directive.stub';
import { NgxPermissionsRestrictStubDirective } from './testing/permissions-restrict.directive.stub';

export * from './store/roles.store'
export * from './store/permissions.store'
Expand Down Expand Up @@ -63,4 +65,31 @@ export class NgxPermissionsModule {
]
};
}
}
}

@NgModule({
imports: [
],
declarations: [
NgxPermissionsAllowStubDirective
],
exports: [
NgxPermissionsAllowStubDirective
]
})
export class NgxPermissionsAllowStubModule {}


@NgModule({
imports: [
],
declarations: [
NgxPermissionsRestrictStubDirective
],
exports: [
NgxPermissionsRestrictStubDirective
]
})
export class NgxPermissionsRestrictStubModule {}


2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-permissions",
"version": "3.2.0",
"version": "3.2.1",
"repository": {
"type": "git",
"url": "https://github.com/AlexKhymenko/ngx-permissions"
Expand Down

0 comments on commit 5a0b73a

Please sign in to comment.