mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 19:13:08 +00:00
59695: Fix AoT error and console warning
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user