angular.js - angularJs
为情所困
为情所困 2017-05-15 16:59:19
0
1
544

How to make placeholder=" " equal to different values ​​according to two different conditions in angularJs.
<input type="text" name="keyWords" id="keyWords" placeholder="Keyword 1/Keyword 2" class="search-style">

为情所困
为情所困

reply all(1)
世界只因有你
<input type="text" name="keyWords" id="keyWords" placeholder="{{myPlaceholder}}" class="search-style">

Inside Controller

$scope.myPlaceholder = '关键词';
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template