# Hiding

You can hide the Notification by [defining a delay period before the hiding occurs](https://www.telerik.com/kendo-angular-ui-develop/components/notification/hiding-notifications#defining-a-delay-before-hiding) or by [defining a closable Notification component](https://www.telerik.com/kendo-angular-ui-develop/components/notification/hiding-notifications#defining-a-closable-notification).

## Defining a Delay before Hiding

To hide the Notification after a specific time period, set the [`hideAfter`](https://www.telerik.com/kendo-angular-ui-develop/components/notification/api/notificationsettings#hideAfter) property of the [`NotificationSettings`](https://www.telerik.com/kendo-angular-ui-develop/components/notification/api/notificationsettings) to the desired milliseconds.

```ts
public show(): void {
    this.notificationService.show({
        ...
        hideAfter: 2000,
    });
}
```

The `hideAfter` property is ignored when the [`closable`](https://www.telerik.com/kendo-angular-ui-develop/components/notification/api/notificationsettings#closable) property is set to `true`.

The following example demonstrates how to show an auto-hiding Notification to quickly notify the user about a successful operation.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/notification/hiding/delay/source.txt)

## Defining a Closable Notification

To render a dedicated **Close** button in the Notification content and prevent auto-hiding behavior, set the [`closable`](https://www.telerik.com/kendo-angular-ui-develop/components/notification/api/notificationsettings#closable) property of the [`NotificationSettings`](https://www.telerik.com/kendo-angular-ui-develop/components/notification/api/notificationsettings)to `true`.

```ts
public show(): void {
    this.notificationService.show({
        ...
        closable: true,
    });
}
```

The [`afterHide`](https://www.telerik.com/kendo-angular-ui-develop/components/notification/api/notificationref#afterHide) subscription allows you to execute some functionality after the Notification instance is hidden and the hide animation is over.

The following example demonstrates how to show a closable Notification.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/notification/hiding/closable/source.txt)

## Suggested Links

* [API Index of the Notification](https://www.telerik.com/kendo-angular-ui-develop/components/notification/api)
* [API Reference of the NotificationService](https://www.telerik.com/kendo-angular-ui-develop/components/notification/api/notificationservice)
