diff --git a/src/app/button/button-example-color/button-example-color.component.ts b/src/app/button/button-example-color/button-example-color.component.ts index 547e00bc..28578be7 100644 --- a/src/app/button/button-example-color/button-example-color.component.ts +++ b/src/app/button/button-example-color/button-example-color.component.ts @@ -1,15 +1,10 @@ -import { Component, OnInit } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'it-button-example-color', templateUrl: './button-example-color.component.html', styleUrls: ['./button-example-color.component.scss'] }) -export class ButtonExampleColorComponent implements OnInit { - - constructor() { } - - ngOnInit() { - } +export class ButtonExampleColorComponent { } diff --git a/src/app/button/button-example-interactive/button-example-interactive.component.ts b/src/app/button/button-example-interactive/button-example-interactive.component.ts index 9d2e4a41..a2627b0d 100644 --- a/src/app/button/button-example-interactive/button-example-interactive.component.ts +++ b/src/app/button/button-example-interactive/button-example-interactive.component.ts @@ -1,11 +1,11 @@ -import { Component, OnInit } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'it-button-example-interactive', templateUrl: './button-example-interactive.component.html', styleUrls: ['./button-example-interactive.component.scss'] }) -export class ButtonExampleInteractiveComponent implements OnInit { +export class ButtonExampleInteractiveComponent { block = false; outline = false; @@ -14,11 +14,6 @@ export class ButtonExampleInteractiveComponent implements OnInit { selectedSize = ''; count = 0; - constructor() { } - - ngOnInit() { - } - increaseCount() { this.count++; } diff --git a/src/app/button/button-example-size/button-example-size.component.ts b/src/app/button/button-example-size/button-example-size.component.ts index 21603dcd..151aab9e 100644 --- a/src/app/button/button-example-size/button-example-size.component.ts +++ b/src/app/button/button-example-size/button-example-size.component.ts @@ -5,11 +5,6 @@ import { Component, OnInit } from '@angular/core'; templateUrl: './button-example-size.component.html', styleUrls: ['./button-example-size.component.scss'] }) -export class ButtonExampleSizeComponent implements OnInit { - - constructor() { } - - ngOnInit() { - } +export class ButtonExampleSizeComponent { } diff --git a/src/app/button/button-example/button-example.component.ts b/src/app/button/button-example/button-example.component.ts index f992f6b6..b76b5dc2 100644 --- a/src/app/button/button-example/button-example.component.ts +++ b/src/app/button/button-example/button-example.component.ts @@ -1,20 +1,14 @@ -import { Component, OnInit } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ selector: 'it-button-example', templateUrl: './button-example.component.html', styleUrls: ['./button-example.component.scss'] }) -export class ButtonExampleComponent implements OnInit { +export class ButtonExampleComponent { color = 'primary'; disabled = false; isOutlined = false; size = 'lg'; isBlock = false; - - constructor() { } - - ngOnInit() { - } - } diff --git a/src/app/button/button-examples/button-examples.component.ts b/src/app/button/button-examples/button-examples.component.ts index 1701841c..7b457b55 100644 --- a/src/app/button/button-examples/button-examples.component.ts +++ b/src/app/button/button-examples/button-examples.component.ts @@ -5,11 +5,6 @@ import { Component, OnInit } from '@angular/core'; templateUrl: './button-examples.component.html', styleUrls: ['./button-examples.component.scss'] }) -export class ButtonExamplesComponent implements OnInit { - - constructor() { } - - ngOnInit() { - } +export class ButtonExamplesComponent { } diff --git a/src/app/button/button-index/button-index.component.ts b/src/app/button/button-index/button-index.component.ts index 98ad305a..8c763c78 100644 --- a/src/app/button/button-index/button-index.component.ts +++ b/src/app/button/button-index/button-index.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit } from '@angular/core'; +import { Component } from '@angular/core'; import * as Documentation from '../../../assets/documentation.json'; @Component({ @@ -6,7 +6,7 @@ import * as Documentation from '../../../assets/documentation.json'; templateUrl: './button-index.component.html', styleUrls: ['./button-index.component.scss'] }) -export class ButtonIndexComponent implements OnInit { +export class ButtonIndexComponent { component: any; @@ -14,7 +14,4 @@ export class ButtonIndexComponent implements OnInit { this.component = (Documentation).components.find(component => component.name === 'ButtonComponent'); } - ngOnInit() { - } - }