I'm new to Angular and try to put images and videos in template but I don't know the appropriate folder to put them. first when put them in "src" folder and put it's shows empty picture and said couldn't load image in the console, But when use the same url in css background-img property it's works fine. After that I put images and videos inside assets folder, But now both angular 4 and 5 crashed with error:
Failed to compile.
File size is greater than possible Buffer: 0x7fffffff bytes.
I didn't what I missing... it's work once I put one image in assets folder but when I put more images this error came up.
Can any one help me to show where to put images and videos and load them in my components??
I'm on mac osX. angular-cli 1.5.3, webpack: 3.8.1, node 6.11.4
thanks in advance.
User contributions licensed under CC BY-SA 3.0