Skip to content

Conversation

@lujakob
Copy link

@lujakob lujakob commented Apr 26, 2017

Karma testing a component that uses in it's template will cause the following error:

TypeError: Cannot read property 'unsubscribe' of undefined
at TagInputComponent.ngOnDestroy (webpack:///~/angular2-tag-input/dist/lib/components/tag-input/tag-input.component.js:207:0 <- src/test.ts:94090:34)

Therefore I think it would make sense to check before unsubscribing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant