Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Successfully added alerts
  • Loading branch information
ImsirovicAjdin committed Aug 28, 2019
1 parent 7c26e7b commit 022918e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/alerts/alerts.component.ts
Expand Up @@ -3,7 +3,7 @@ import { DomSanitizer } from '@angular/platform-browser';

@Component({
selector: 'demo-alert-dynamic-html',
templateUrl: './dynamic-html.html'
templateUrl: './alerts.component.html'
})
export class DemoAlertDynamicHtmlComponent {
alerts: any = [
Expand Down
2 changes: 2 additions & 0 deletions src/app/app.component.html
@@ -1,3 +1,5 @@
<demo-alert-dynamic-html></demo-alert-dynamic-html>

<hello name="{{ name }}"></hello>
<p>
Start editing to see some magic happen :)
Expand Down
6 changes: 4 additions & 2 deletions src/app/app.module.ts
@@ -1,13 +1,15 @@
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { AlertModule } from 'ngx-bootstrap/alert';

import { AppComponent } from './app.component';
import { HelloComponent } from './hello.component';
import { DemoAlertDynamicHtmlComponent } from './alerts/alerts.component';

@NgModule({
imports: [ BrowserModule, FormsModule ],
declarations: [ AppComponent, HelloComponent ],
imports: [ BrowserModule, FormsModule, AlertModule.forRoot() ],
declarations: [ AppComponent, HelloComponent, DemoAlertDynamicHtmlComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule { }

0 comments on commit 022918e

Please sign in to comment.