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
I'm trying to integrate a bootstrap template with angular project, this template uses wow.js library, so I tried to install this library as bellow:
1- install wow.js using npm
npm I wowjs
2- install nxg-wow
npm i ngx-wow
And in app.module.ts I added the NgwWowModule in imports:
import { NgwWowModule } from 'ngx-wow';
imports: [
BrowserModule,
HttpClientModule,
AppRoutingModule,
BrowserAnimationsModule,
NgxPaginationModule, NgwWowModule,
MaterialModule,
FormsModule,
],
Then I added the reference in angular.json file under scripts[]:
"scripts": [
"./node_modules/wowjs/dist/wow.min.js",
"./node_modules/jquery/dist/jquery.js",
"./node_modules/bootstrap/dist/js/bootstrap.js"
]
Also in styles.css I added the animate.cs:
@import "~animate.css/animate.css";
Inside the component.ts I did the bellow:
import { Component, OnInit } from '@angular/core';
import { NgwWowService } from 'ngx-wow';
I'm trying to integrate a bootstrap template with angular project, this template uses wow.js library, so I tried to install this library as bellow:
1- install wow.js using npm
npm I wowjs
2- install nxg-wow
npm i ngx-wow
And in app.module.ts I added the NgwWowModule in imports:
import { NgwWowModule } from 'ngx-wow';
imports: [
BrowserModule,
HttpClientModule,
AppRoutingModule,
BrowserAnimationsModule,
NgxPaginationModule,
NgwWowModule,
MaterialModule,
FormsModule,
],
Then I added the reference in angular.json file under scripts[]:
"scripts": [
"./node_modules/wowjs/dist/wow.min.js",
"./node_modules/jquery/dist/jquery.js",
"./node_modules/bootstrap/dist/js/bootstrap.js"
]
Also in styles.css I added the animate.cs:
@import "~animate.css/animate.css";
Inside the component.ts I did the bellow:
import { Component, OnInit } from '@angular/core';
import { NgwWowService } from 'ngx-wow';
@component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.css']
})
export class HomeComponent implements OnInit {
constructor(private wowService: NgwWowService) {
this.wowService.init();
}
}
And then, I tired to use the wow's classes in HTML as bellow:
Features
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.
The text was updated successfully, but these errors were encountered: