59695: Fix AoT error and console warning

This commit is contained in:
Kristof De Langhe
2019-02-13 11:08:01 +01:00
parent 394a327611
commit 5288f817b0
2 changed files with 8 additions and 1 deletions

View File

@@ -39,6 +39,13 @@ export class BrowseByStartsWithAbstractComponent implements OnInit, OnDestroy {
});
}
/**
* Get startsWith as a number;
*/
getStartsWithAsNumber() {
return +this.startsWith;
}
/**
* Set the startsWith by event
* @param event

View File

@@ -16,7 +16,7 @@
</select>
</div>
<div class="form-group input-group col-7 col-md-6">
<input class="form-control" placeholder="{{'browse.startsWith.type_year' | translate}}" type="number" name="startsWith" formControlName="startsWith" [value]="+startsWith" />
<input class="form-control" placeholder="{{'browse.startsWith.type_year' | translate}}" type="number" name="startsWith" formControlName="startsWith" [value]="getStartsWithAsNumber()" />
<span class="input-group-append">
<button class="btn btn-secondary" type="submit">{{'browse.startsWith.submit' | translate}}</button>
</span>