How do I get ZURB Foundation 6.4.1 to work with Angular 4?

Viewed 5256
2 Answers

The answer by @Raphael ABADIE-MOREAU works but in the latest version of foundation sites which is 6.5.0 at the time of me posting this comment, some of it is broken, this is what i used:

"styles": [
   "../node_modules/foundation-sites/dist/css/foundation.css",
   "styles.css"
 ],
 "scripts": [
   "../node_modules/jquery/dist/jquery.min.js",
   "../node_modules/foundation-sites/dist/js/foundation.min.js"
 ],

also you will notice that jquery is not imorted from foundation sites, you will need to install it seperately, and make sure jquery comes before foundation.min.js.

to get the scripts installed into node_modules you can type this into cmd/terminal:

npm i foundation-sites jquery --save

to install both foundation-sites and jquery.

Related