Is it mandatory to keep images in assets folder in Angular 2? -


images kept in "assets" directory public can kept in respective components html files can access

it not required put images in assets project.

asset folder preconfigured. when run build command things in asset folder copied output folder(dist) automatically publish. no need copy manually.

you can configured different folder asset. see in below code sample.

  "assets": [     "assets",     "xyz",     "favicon.ico"   ], 

Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -