vladotesanovic / ngSemantic

Angular 2 building blocks :package: based on Semantic UI
https://ng-semantic.herokuapp.com/
MIT License
973 stars 148 forks source link

ng-content Transclusion doesn't work with element selector #175

Open mamsoudi opened 7 years ago

mamsoudi commented 7 years ago

Hey there, I found a little issue with ng-content. Apparently angular doesn't anymore let ng-content select attribute use Elements as selectors for transcluding elements. Right now it only allows making use of class and attribute selectors.

I figured out there's 4 component in ngSemantic currently using this approach:

  1. Accordion
  2. Card
  3. Message
  4. Modal

These 4 need to be updated or they won't work with the latest versions of angular 2/4.

TroyMurphy commented 7 years ago

You can allow html selector transclusion if you add NO_ERRORS_SCHEMA in NgModule declaration.