Browse Source
Merge pull request #15287 from abpframework/update/tutorial-select-enum
localize enum key in select
pull/15289/head
Mahmut Gundogdu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
docs/en/Tutorials/Part-3.md
|
|
|
@ -789,7 +789,7 @@ Open `/src/app/book/book.component.html` and replace `<ng-template #abpBody> </n |
|
|
|
<label for="book-type">Type</label><span> * </span> |
|
|
|
<select class="form-control" id="book-type" formControlName="type"> |
|
|
|
<option [ngValue]="null">Select a book type</option> |
|
|
|
<option [ngValue]="type.value" *ngFor="let type of bookTypes"> {%{{{ type.key }}}%}</option> |
|
|
|
<option [ngValue]="type.value" *ngFor="let type of bookTypes"> {%{{{ '::Enum:BookType.' + type.value | abpLocalization }}}%}</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
|
|
|
|
|