Angular-tree-component: No provider for TreeDraggedElement!

Created on 17 Aug 2018  路  2Comments  路  Source: CirclonGroup/angular-tree-component

everything goes as document say,however the error below happen!

Error: StaticInjectorError(AppModule)[TreeComponent -> TreeDraggedElement]:
StaticInjectorError(Platform: core)[TreeComponent -> TreeDraggedElement]:
NullInjectorError: No provider for TreeDraggedElement!

Most helpful comment

You should use forRoot() method to import the module:
```ts
@NgModule({
imports: [ TreeModule.forRoot(), ...]
});

All 2 comments

You should use forRoot() method to import the module:
```ts
@NgModule({
imports: [ TreeModule.forRoot(), ...]
});

yes, it's ok thank you a lot

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matthewdfleming picture matthewdfleming  路  3Comments

filipemansano picture filipemansano  路  5Comments

olastor picture olastor  路  5Comments

hipresario picture hipresario  路  4Comments

AbhiThakare picture AbhiThakare  路  5Comments