diff --git a/package.json b/package.json index 77b9bd52d8..297154be70 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "lodash": "4.17.2", "markdown-loader": "github:valorkin/markdown-loader", "marked": "0.3.6", - "ng2-page-scroll": "4.0.0-beta.1", + "ng2-page-scroll": "4.0.0-beta.2", "ngm-cli": "^0.3.7", "npm-run-all": "3.1.2", "pre-commit": "1.2.1", diff --git a/src/alert/alert.component.ts b/src/alert/alert.component.ts index 932e256e58..5d0ecdf01e 100644 --- a/src/alert/alert.component.ts +++ b/src/alert/alert.component.ts @@ -1,11 +1,14 @@ import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { AlertConfig } from './alert.config'; +import { OnChange } from '../utils/decorators'; -const ALERT_TEMPLATE = ` +@Component({ + selector: 'alert,ngx-alert', + template: `