ngUpgraders / ng-forward

The default solution for those that want to write Angular 2.x style code in Angular 1.x
411 stars 36 forks source link

using <content></content> inside a component template #126

Closed jeevandark closed 8 years ago

jeevandark commented 8 years ago

Hi, Is the above possible? I mean, using

<content></content>
inside a component template written with ng-forward - to enable the consumer insert the content he wants inside the component? (I could not make it happen)

eg. - in the template:
@Component ({ selector: 'my-element', template: '<content></content>' })

and in the consuming html: <my-element> <span class='any-class'>PRESS ME</span> </my-element>

Why? any other way to achieve that with ng-forward?

timkindberg commented 8 years ago

That's already supported. Have you tried it?

jeevandark commented 8 years ago

Hi Thanks a lot for the quick reply!

Will try to upgrade to alpha-11 (from alpha-8) and see if that helps.. :)

10x again

On Fri, Dec 25, 2015 at 5:08 AM, Tim Kindberg notifications@github.com wrote:

Closed #126 https://github.com/ngUpgraders/ng-forward/issues/126.

— Reply to this email directly or view it on GitHub https://github.com/ngUpgraders/ng-forward/issues/126#event-500375183.