Component transclude with inline template

后端 未结 2 1795
萌比男神i
萌比男神i 2021-01-05 07:50

I\'m using Angular 2-rc3 and have a Component and I want to apply transclusion, just in a bit of a different way. Here\'s my component:

import {         


        
2条回答
  •  情歌与酒
    2021-01-05 08:46

    To spell out the ngForTemplate method:

    (As of Angular 4 the element is now called .)

    1. Use a