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">
<input type="text" name="keyWords" id="keyWords" placeholder="{{myPlaceholder}}" class="search-style">
Inside Controller
$scope.myPlaceholder = '关键词';
Inside Controller