Comments (3)
Exactly @khylias! You need to import BrowserAnimationsModule
into your module and the error will be gone 😉
Since v3.0.0 you need to manually add BrowserAnimationsModule
to your module where you're also declaring NgxSmartModalModule
to fix an error in case you already declared it (NgxSmartModal
was also importing it so it was making errors) [ref.: #35]!
from ngx-smart-modal.
Thanks for submitting your issue @khylias.
Can you please provide the content of the *.module.ts
where NgxSmartModalModule
is imported?
from ngx-smart-modal.
My app.module.ts :
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {ThemeModule} from './theme/theme.module';
import {HttpClientModule} from '@angular/common/http';
import {CarouselModule} from 'angular4-carousel';
import { NgxSmartModalModule, NgxSmartModalService } from 'ngx-smart-modal';
import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {
ApplicationService
} from './_services';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
ThemeModule.forRoot(),
AppRoutingModule,
HttpClientModule,
CarouselModule,
TruncateModule,
NgxSmartModalModule.forRoot()
],
providers: [
ApplicationService,
NgxSmartModalService
],
bootstrap: [AppComponent]
})
export class AppModule {
}
I need to add in module's imports :
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
from ngx-smart-modal.
Related Issues (20)
- Hi, it's is possible to open a modal and go to an anchor tag inside the modal? Thanks in advance.
- export INgxSmartModalOptions
- How to render modal to the body?
- Action close modal doesn't destroy child components
- By some reason modal component mounts child component to the dom when modal is hidden
- Apply await to onAnyCloseEventFinished not working
- Error: node_modules/ngx-smart-modal/src/modules/ngx-smart-modal.module.d.ts:12:24 - error TS2314
- Cannot read properties of undefined (reading 'focus') HOT 1
- Support for Angular 16 (Ivy compatibility without ngcc) HOT 2
- Version 14 has been released! 🤘
- Breaking change of modal getData() HOT 12
- modalService create<>() throws NG0902: This view is already attached to a ViewContainer! HOT 10
- modal service create method parameters differ from documentation
- Property 'closable' is incompatible with index signature. HOT 4
- Can't bind to 'autostart' since it isn't a known property of 'ngx-smart-modal' HOT 4
- Extending modal.service
- Standalone Support HOT 1
- modalServiceCreate - target HOT 1
- Circular dependency in DI detected for ApplicationRef after ngx-smart-modal and angular upgrade HOT 1
- ERROR : The node to be removed is not a child of this node. HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-smart-modal.