how do i seperate angular html and script code?

You need to install the packages. Here you have the packages at your script.

npm i jquery
npm i bootstrap
npm i @fortawesome/angular-fontawesome
https://github.com/FortAwesome/angular-fontawesome

And do not forget to add the bootstrap & jquery at the angular.json

 "styles": [
    "src/styles.css",
     "node_modules/bootstrap/dist/css/bootstrap.min.css"
 ],
  "scripts": [
  "node_modules/jquery/dist/jquery.min.js",
   "node_modules/bootstrap/dist/js/bootstrap.min.js"
 ]

And I suggest you to separate your code in different components. Thats you make your code more readable and you can faster fix a bug or find what you want.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top