Skip to content

Commit

Permalink
fix(spinner): add input mode fix #8598
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonornela committed Oct 10, 2016
1 parent 96838b9 commit 8ee895f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/spinner/spinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ export class Spinner extends Ion {
this._setColor('spinner', value);
}

/**
* @input {string} The mode to apply to this component.
*/
@Input()
set mode(val: string) {
this._setMode('spinner', val);
}

/**
* @input {string} SVG spinner name.
*/
Expand Down Expand Up @@ -163,6 +171,8 @@ export class Spinner extends Ion {

constructor(config: Config, elementRef: ElementRef, renderer: Renderer) {
super(config, elementRef, renderer);

this.mode = config.get('mode');
}

/**
Expand Down

0 comments on commit 8ee895f

Please sign in to comment.