Skip to content
Snippets Groups Projects
Commit 5288f817 authored by Kristof De Langhe's avatar Kristof De Langhe
Browse files

59695: Fix AoT error and console warning

parent 394a3276
No related merge requests found
......@@ -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
......
......@@ -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>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment