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
Post a Comment