Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ghoul007/angular-content-projection

ngTemplateOutlet vs ngContent
https://github.com/ghoul007/angular-content-projection

Last synced: about 1 month ago
JSON representation

ngTemplateOutlet vs ngContent

Awesome Lists containing this project

README

        

## Content projection
Content projection is a way to import HTML content from outside the component and insert that content into the component’s template in a designated spo

## The problem ( When using NG-Content )

The problem is that 'nested' components are immediately initialized and not destroyed when removed from DOM.

## Solution ( Using template outlet )

```js

```

[Example with loader](https://stackblitz.com/edit/angular-dscswb)