refactor(aio): remove ngOnInit method

This commit is contained in:
Alexander Zhukov 2017-05-05 17:22:35 +03:00
parent 3e47df7526
commit 923e56c3d2
17 changed files with 37 additions and 103 deletions

View file

@ -1,14 +1,10 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
@Component({
selector: 'ngx-buttons',
styleUrls: ['./buttons.component.scss'],
templateUrl: './buttons.component.html',
})
export class NgxButtonsComponent implements OnInit {
constructor() { }
ngOnInit() { }
export class NgxButtonsComponent {
}

View file

@ -1,13 +1,9 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
@Component({
selector: 'ngx-disabled-buttons',
templateUrl: './disabled.component.html',
})
export class NgxDisabledButtonsComponent implements OnInit {
constructor() { }
ngOnInit() { }
export class NgxDisabledButtonsComponent {
}

View file

@ -1,13 +1,9 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
@Component({
selector: 'ngx-dropdown-buttons',
templateUrl: './dropdown.component.html',
})
export class NgxDropdownButtonsComponent implements OnInit {
constructor() { }
ngOnInit() { }
export class NgxDropdownButtonsComponent {
}

View file

@ -1,13 +1,9 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
@Component({
selector: 'ngx-flat-buttons',
templateUrl: './flat.component.html',
})
export class NgxFlatButtonsComponent implements OnInit {
constructor() { }
ngOnInit() { }
export class NgxFlatButtonsComponent {
}

View file

@ -1,13 +1,9 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
@Component({
selector: 'ngx-group-buttons',
templateUrl: './group.component.html',
})
export class NgxGroupButtonsComponent implements OnInit {
constructor() { }
ngOnInit() { }
export class NgxGroupButtonsComponent {
}

View file

@ -1,13 +1,9 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
@Component({
selector: 'ngx-icon-buttons',
templateUrl: './icon.component.html',
})
export class NgxIconButtonsComponent implements OnInit {
constructor() { }
ngOnInit() { }
export class NgxIconButtonsComponent {
}

View file

@ -1,13 +1,9 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
@Component({
selector: 'ngx-large-buttons',
templateUrl: './large.component.html',
})
export class NgxLargeButtonsComponent implements OnInit {
constructor() { }
ngOnInit() { }
export class NgxLargeButtonsComponent {
}

View file

@ -1,13 +1,9 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
@Component({
selector: 'ngx-raised-buttons',
templateUrl: './raised.component.html',
})
export class NgxRaisedButtonsComponent implements OnInit {
constructor() { }
ngOnInit() { }
export class NgxRaisedButtonsComponent {
}

View file

@ -1,13 +1,9 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
@Component({
selector: 'ngx-sized-buttons',
templateUrl: './sized.component.html',
})
export class NgxSizedButtonsComponent implements OnInit {
constructor() { }
ngOnInit() { }
export class NgxSizedButtonsComponent {
}