Skip to content

Commit

Permalink
chore(docs): fixed progress bar sample
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed Dec 21, 2016
1 parent 3b944c4 commit ced0aea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demo/src/ng-api-doc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ export const ngdoc = {
{
"name": "max",
"type": "number",
"description": "provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` "
"description": "maximum total value of progress element "
}
],
"outputs": [],
Expand Down
4 changes: 2 additions & 2 deletions src/progressbar/progress.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class ProgressDirective {
/** if `true` changing value of progress bar will be animated (note: not supported by Bootstrap 4) */
@Input() public animate:boolean;

/** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */
/** maximum total value of progress element */
@HostBinding('attr.max')
@Input()
public get max():number {
Expand All @@ -27,7 +27,7 @@ export class ProgressDirective {

public bars:any[] = [];

protected _max:number;
protected _max:number = 100;

public addBar(bar:BarComponent):void {
if (!this.animate) {
Expand Down

0 comments on commit ced0aea

Please sign in to comment.