How do I import svg from file to a component in angular 5?
If you have logo.svg: Put it inside your src/assets folder Include folder in the angular.json config: “assets”: [ “src/assets” ] Refer to it from template: <img src=”https://stackoverflow.com/questions/53066823/assets/svg/logo.svg”>