Back to Browse

ng-content in Angular | Directives | Angular 12+

42.2K views
Feb 4, 2022
12:53

The ng-content is used when we want to insert the content dynamically inside the component that helps to increase component reusability. Using ng-content we can pass content inside the component selector and when angular parses that content that appears at the place of ng-content. Let's understand the use of ng-content with an example.

Download

1 formats

Video Formats

360pmp419.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

ng-content in Angular | Directives | Angular 12+ | NatokHD