Hi Reza, Styles you call in this way, are local to the component, and can't be used elsewhere. (well, this is not 100% technically accurate, but it helps to think that way) For a complete picture see this in the manual <https://angular.io/docs/ts/latest/guide/component-styles.html>. This is the most important part (in your context!):
The selectors you put into a component's styles apply only within the > template of that component. The h1 selector in the preceding example > applies only to the <h1> tag in the template of HeroAppComponent. Any <h1> > elements elsewhere in the application are unaffected. That means, if you want to use styles like you want, you have to define that style inside the global styles.css Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
