Angular CLI: 6.0.8 Node: 10.15.3 OS: linux x64 Angular: 6.1.10 @Component({ selector: '.successAlert', templateUrl: './success-alert.component.html', styles: ['.successAlert { color: red; }'] })
I was expecting, of course, to have the component text on red. But it doesn't work, just the styling part, the component content is there as expected... Did I miss something? By the way, this is the output: <div _ngcontent-c0="" class="successAlert" _nghost-c2=""> <p _ngcontent-c2=""> success-alert works!</p> </div> -- 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.