Shobit jain

HTML, CSS, JavaScript and JQuery into Angular

Step 1. First, add all related files and folders assets from template to assets files and folders of Angular project like. CSS, img, js and remains.

Step 2. Add all necessary links of CSS and js files into the main index.html of Angular project.

<link href=”assets/vendor/bootstrap/css/bootstrap.min.css” rel=”stylesheet”>
<script src=”assets/js/main.js”></script>

Step 3. Add ‘assets/’ in starting of the path (if it is not there).

Step 4. Lastly, Add rest of the HTML tags in required “XYZ.component.html”

Step 5. Run “ng serve”



There are a huge number of advantages of Typescript over JavaScript but here is some advantage of JavaScript over Typescript.

TypeScript is a superset of JavaScript
  1. Typescript needs a compiler while JavaScript code doesn’t need.
  2. JavaScript doesn’t need any web server, on the other hand, typescript needs Node js or a newer version of ECMAScript 3.
  3. JavaScript code is Lightweighted, cleaner and simpler than TypeScript.