--- Title: Empty Content Component Added: v2.4.0 Status: Active Last reviewed: 2019-02-01 --- # [Empty Content Component](lib/core/src/lib/templates/empty-content/empty-content.component.ts "Defined in empty-content.component.ts") Provides a generic "Empty Content" placeholder for components. ![Favorites screen](../../docassets/images/empty-content-favorites.png) ## Basic usage ```html ``` ## Class members ### Properties | Name | Type | Default value | Description | | ---- | ---- | ------------- | ----------- | | icon | `string` | "cake" | Material Icon to use. | | subtitle | `string` | "" | String or Resource Key for the subtitle. | | title | `string` | "" | String or Resource Key for the title. | ## Details ### Usage examples ```html ``` ![Favorites screen](../../docassets/images/empty-content-favorites.png) You can also use multiple lines instead of the subtitle section: ```html

{{ 'APP.BROWSE.TRASHCAN.EMPTY_STATE.FIRST_TEXT' | translate }}

{{ 'APP.BROWSE.TRASHCAN.EMPTY_STATE.SECOND_TEXT' | translate }}

``` ![Trashcan screen](../../docassets/images/empty-content-trashcan.png) ## See also - [Error content component](error-content.component.md)