Skip to content

Commit 0abb162

Browse files
committed
refactor: cleanup
1 parent 172f74a commit 0abb162

File tree

4 files changed

+11
-25
lines changed

4 files changed

+11
-25
lines changed

src/app/app.component.html

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/app/views/base/carousels.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { Component } from '@angular/core';
22
import { CarouselConfig } from 'ngx-bootstrap/carousel';
33

44
@Component({
5-
templateUrl: 'carousels.component.html', providers: [
6-
{ provide: CarouselConfig, useValue: { interval: 1500, noPause: true } }
5+
templateUrl: 'carousels.component.html',
6+
providers: [
7+
{ provide: CarouselConfig, useValue: { interval: 1500, noPause: true } },
78
]
89
})
910
export class CarouselsComponent {

src/app/views/buttons/dropdowns.component.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { Component } from '@angular/core';
1+
import {Component, OnDestroy} from '@angular/core';
22

33
@Component({
44
templateUrl: 'dropdowns.component.html',
55
styleUrls: ['dropdowns.component.css']
66
})
7-
export class DropdownsComponent {
7+
export class DropdownsComponent implements OnDestroy {
88

99
status: { isOpen: boolean } = { isOpen: false };
1010
disabled: boolean = false;
@@ -13,6 +13,10 @@ export class DropdownsComponent {
1313

1414
constructor() { }
1515

16+
ngOnDestroy () {
17+
this.status.isOpen = false;
18+
}
19+
1620
items: string[] = [
1721
'The first choice!',
1822
'And another choice for you.',

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ if (environment.production) {
99
}
1010

1111
platformBrowserDynamic().bootstrapModule(AppModule, {
12-
preserveWhitespaces: true
12+
useJit: true,
13+
preserveWhitespaces: true
1314
})
1415
.catch(err => console.log(err));

0 commit comments

Comments
 (0)