Skip to content

Commit

Permalink
Remove Hostbinding classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jedrzej committed Jun 11, 2019
1 parent eb48c34 commit 693de03
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions library/src/lib/panel/panel-grid/panel-grid.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,10 @@ import { AbstractFdNgxClass } from '../../utils/abstract-fd-ngx-class';
export class PanelGridComponent extends AbstractFdNgxClass {

/** Number of columns for the grid. */
@Input()
col: number;
@Input() col: number;

/** Whether the grid should have a gap. */
@Input()
@HostBinding('class.fd-panel-grid--nogap')
nogap: boolean = false;

/** @hidden */
@HostBinding('class.fd-panel-grid')
fdPanelGridClass: boolean = true;
@Input() nogap: boolean = false;

/** @hidden */
constructor(private elementRef: ElementRef) {
Expand All @@ -31,9 +24,7 @@ export class PanelGridComponent extends AbstractFdNgxClass {

/** @hidden */
_setProperties() {
if (this.fdPanelGridClass) {
this._addClassToElement('fd-panel-grid');
}
this._addClassToElement('fd-panel-grid');

if (this.nogap) {
this._addClassToElement('fd-panel-grid--nogap');
Expand Down

0 comments on commit 693de03

Please sign in to comment.