Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e479572

Browse files
AlexanderTserkovniygkalpak
authored andcommitted
docs(guide/component): use fieldType property in component's template
Closes #14059
1 parent 019900d commit e479572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/guide/component.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ it upwards to the heroList component, which updates the original data.
282282
</file>
283283
<file name="editableField.html">
284284
<span ng-switch="$ctrl.editMode">
285-
<input ng-switch-when="true" type="text" ng-model="$ctrl.fieldValue">
285+
<input ng-switch-when="true" type="{{$ctrl.fieldType}}" ng-model="$ctrl.fieldValue">
286286
<span ng-switch-default>{{$ctrl.fieldValue}}</span>
287287
</span>
288288
<button ng-click="$ctrl.handleModeChange()">{{$ctrl.editMode ? 'Save' : 'Edit'}}</button>

0 commit comments

Comments
 (0)