You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR TypeError: this.init is not a function
at Object.Board (Board.js:55)
at GoBoardDirective.webpackJsonp.204.GoBoardDirective.ngOnInit (go-board.directive.ts:16)
at checkAndUpdateDirectiveInline (core.es5.js:10705)
at checkAndUpdateNodeInline (core.es5.js:12084)
at checkAndUpdateNode (core.es5.js:12052)
at debugCheckAndUpdateNode (core.es5.js:12681)
at debugCheckDirectivesFn (core.es5.js:12622)
at Object.View_SnippetsListComponent_1.currVal_0 [as updateDirectives] (SnippetsListComponent.html:10)
at Object.debugUpdateDirectives [as updateDirectives] (core.es5.js:12607)
at checkAndUpdateView (core.es5.js:12019)
The text was updated successfully, but these errors were encountered:
There are two problems - NPM module is not working for now (I have feeling it contains development version). Second WGo.Board is constructor, should be created with new.
I am trying to use the wgo npm module in Angular.
typings.d.ts:
in a directive:
This code produces a js error in the browser:
The text was updated successfully, but these errors were encountered: