Skip to content

Commit

Permalink
docs(Button): Rimuovi codice superfluo dalla documentazione del bottone
Browse files Browse the repository at this point in the history
ref #44
  • Loading branch information
Mario Traetta committed Jul 30, 2018
1 parent 6b1621e commit f1ef909
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -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 {

}
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -14,11 +14,6 @@ export class ButtonExampleInteractiveComponent implements OnInit {
selectedSize = '';
count = 0;

constructor() { }

ngOnInit() {
}

increaseCount() {
this.count++;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

}
10 changes: 2 additions & 8 deletions src/app/button/button-example/button-example.component.ts
Original file line number Diff line number Diff line change
@@ -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() {
}

}
7 changes: 1 addition & 6 deletions src/app/button/button-examples/button-examples.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

}
7 changes: 2 additions & 5 deletions src/app/button/button-index/button-index.component.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
import * as Documentation from '../../../assets/documentation.json';

@Component({
selector: 'it-button-index',
templateUrl: './button-index.component.html',
styleUrls: ['./button-index.component.scss']
})
export class ButtonIndexComponent implements OnInit {
export class ButtonIndexComponent {

component: any;

constructor() {
this.component = (<any>Documentation).components.find(component => component.name === 'ButtonComponent');
}

ngOnInit() {
}

}

0 comments on commit f1ef909

Please sign in to comment.