Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

when use component inside 'p' tag- it places the html should be transcluded outside the 'p' #15838

Closed
shootermv opened this issue Mar 21, 2017 · 1 comment

Comments

@shootermv
Copy link

Note: for support questions, please use one of these channels: https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#question. This repository's issues are reserved for feature requests and bug reports.

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
My component uses two more inner components which should transclude some custom html
The first one acting properly , but the second - places the html should be transcluded outside the 'p' tag

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (template: http://plnkr.co/edit/tpl:yBpEi4).
http://plnkr.co/edit/ph7WPPgj1vZsX0dBh8jW?p=preview

What is the expected behavior?
should transclude some custom html and leave it inside the component

Tried this in chrome & ff browsers on windows and mac.

@gkalpak
Copy link
Member

gkalpak commented Mar 21, 2017

Duplicate of #1459 (and several others). See here and there for explanations why this happens.
(Hint: It is the browser, not AngularJS.)

@gkalpak gkalpak closed this as completed Mar 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants