angular js files


I want to implement angular js in yii2 advanced template, but i dont know where should i have to keep angular js file so it can be accessible by both templates(frontend & backend).

Please anyone guide me

  1. Update your composer with angularJs packages.

add needed packages in composer.json before update, something like below

"bower-asset/angular": "*",

"bower-asset/angular-route": "*",

"bower-asset/angular-strap": "*"

  1. Create a new Asset (Like AppAsset in fronend or backend)

  2. Register it in view where you want.