Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mamsoudi opened this issue Apr 4, 2017 · 1 comment
Open

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

mamsoudi opened this issue Apr 4, 2017 · 1 comment

Comments

@mamsoudi
Copy link

mamsoudi commented Apr 4, 2017

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants