I get an error when I use collapse on v4.2.0
ng:///AppModule/NavComponent.ngfactory.js:28 ERROR Error: StaticInjectorError(AppModule)[CollapseDirective -> AnimationBuilder]:
StaticInjectorError(Platform: core)[CollapseDirective -> AnimationBuilder]:
NullInjectorError: No provider for AnimationBuilder!
at NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get (vendor.js:44162)
at resolveToken (vendor.js:44407)
at tryResolveToken (vendor.js:44351)
at
Hello
Can you try adding the BrowserAnimationsModule in app.module.ts?
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
imports: [BrowserAnimationsModule]
Hello
Can you try adding the BrowserAnimationsModule in app.module.ts?
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
imports: [BrowserAnimationsModule]
it's work! thank you. how u know that, has a document for that?
Most helpful comment
Hello
Can you try adding the BrowserAnimationsModule in app.module.ts?
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';imports: [BrowserAnimationsModule]