Attach css and js on specific templates in drupal 8

Want to load some specific js and css on particular twig template of drupal 8 ?

Don't worry, you are on the right page.

How to do it :

1. Go to your theme_name.libraries.yml file create a new library in this file for example post the following code:

  version: VERSION
  js: { type: external, minified: true }
     /libraries/ {}

2. Now got to your template(twig template) and paste following code at starting of file:

 {{ attach_library('theme_name/test-library') }}

That's it. Happy learning