install aos angular 10

Solutions on MaxInterview for install aos angular 10 by the best coders in the world

showing results for - "install aos angular 10"
Lucia
12 Apr 2016
1//install
2npm install aos --save
3//inside the angular.json inside of 'build', look for the 'styles' and 'scripts'
4//inside them add:
5styles: [... "node_modules/aos/dist/aos.css"]
6scripts: [... "node_modules/aos/dist/aos.js"]
7
8//to add AOS for the entire project, at the top of app.component.ts add:
9
10import * as AOS from 'aos';
11
12ngOnInit(){
13AOS.init();
14}