1 year ago

#152191

test-img

vazha abdushelishvili

How to pass multiple ng-templates to ng-content?

I am using Swiper's swiper component and the way you can display slides is using ng templates with SwiperSlide directive on it. I want to make my swiper component reusable and use that component instead of swiper's component every single time. Heres how i want flow to be

Feature component -> passes multiple ng templates -> my swiper component then passes those ng templates to -> Swiper's swiper component.

enter image description here

angular

swiper.js

ng-template

ng-content

0 Answers

Your Answer

Accepted video resources