Angular2 - Styling
// Angular 2 - Style: We can assign styles to a component, or we can put the styles into a separate files. When we assign styles to a component, they are scoped to that specific component. When we add styles to a component, we're keeping everything a component needs — HTML, the CSS, the code — together in one convenient place. It's pretty easy to package it all up and re-use the component somewhere else. We can also create styles at the application level outside of any component. For styles that are common across the application, we can add it to the main style.css file that we added to the index.html earlier on. The styleUrls property is an array of style file names (with paths). We could list multiple style files from different locations if we needed them.
page revision: 1, last edited: 14 Feb 2017 18:53