{"action":"closed","issue":{"url":"https://api.github.com/repos/stalniy/casl/issues/131","repository_url":"https://api.github.com/repos/stalniy/casl","labels_url":"https://api.github.com/repos/stalniy/casl/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/stalniy/casl/issues/131/comments","events_url":"https://api.github.com/repos/stalniy/casl/issues/131/events","html_url":"https://github.com/stalniy/casl/issues/131","id":383930752,"node_id":"MDU6SXNzdWUzODM5MzA3NTI=","number":131,"title":"Stopped working when i upgraded version","user":{"login":"rodrigoreal","id":8595202,"node_id":"MDQ6VXNlcjg1OTUyMDI=","avatar_url":"https://avatars0.githubusercontent.com/u/8595202?v=4","gravatar_id":"","url":"https://api.github.com/users/rodrigoreal","html_url":"https://github.com/rodrigoreal","followers_url":"https://api.github.com/users/rodrigoreal/followers","following_url":"https://api.github.com/users/rodrigoreal/following{/other_user}","gists_url":"https://api.github.com/users/rodrigoreal/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigoreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigoreal/subscriptions","organizations_url":"https://api.github.com/users/rodrigoreal/orgs","repos_url":"https://api.github.com/users/rodrigoreal/repos","events_url":"https://api.github.com/users/rodrigoreal/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigoreal/received_events","type":"User","site_admin":false},"labels":[{"id":887769293,"node_id":"MDU6TGFiZWw4ODc3NjkyOTM=","url":"https://api.github.com/repos/stalniy/casl/labels/needs%20more%20info","name":"needs more info","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-11-23T21:40:14Z","updated_at":"2018-12-02T07:19:19Z","closed_at":"2018-12-02T07:19:19Z","author_association":"NONE","body":"I'm using with angular and i've just upgraded the version of the package and it stopped working.\r\n`@casl/ability: 2.4.2 -> 2.5.1`\r\n`@casl/angular: 0.3.1 -> 0.4.1`\r\nWhen i downgraded back to the previous version it worked again.\r\nI'm trying to find if there is any breaking change between these versions but I did not find anything related.\r\nBelow is a part of my code:\r\n```\r\n// defining the rules\r\nimport { AbilityBuilder, Ability } from '@casl/ability';\r\nconstructor(private ability: Ability) {}\r\nrules() {\r\n  const { rules, can } = AbilityBuilder.extract();\r\n  can('create', 'customer');\r\n  can('delete', 'customer');\r\n  this.ability.update(rules);\r\n}\r\n```\r\n\r\n```\r\n// app.module.ts\r\nimport { NgModule } from '@angular/core'\r\nimport { AbilityModule } from '@casl/angular'\r\n// ...\r\n\r\n@NgModule({\r\n  imports: [\r\n    ...,\r\n    AbilityModule\r\n  ],\r\n  declarations: [...],\r\n  bootstrap: [...],\r\n})\r\nexport class AppModule {}\r\n```\r\n\r\n```\r\n<button mat-raised-button color=\"primary\" class=\"add-button\" (click)=\"addCustomer()\" *ngIf=\"'customer' | can: 'create'\">\r\n  <mat-icon>add</mat-icon>\r\n  {{ 'shared.addCustomer' | translate }}\r\n</button>\r\n```"}}
{"actor":{"display_login":"stalniy"}}