データベースから日付を取得しようとしています。そして、ng-show を使用したいデータを使用します。
私のjsファイルで:
httpq.post('/data/instructor.asmx/PasswordAgain', postData)
.then(function(data) {
$scope.informs = JSON.parse(data.d.result).Table;
if ($scope.informs.length > 0) {
$scope.Ins_Checking = $scope.informs[0];
}
})
.catch(function(data, status) {
$.showToast('error', $filter('translate')('MSG.ERROR'));
})
.finally(function() {
console.log("finally finished1");
});
私のhtmlファイル(テストコード)で:
<div ng-repeat="inform in informs">
{{inform.Ins_Check}}
</div>
これは機能しています。
質問 :
<div ng-show="Ins_Check != 'O'">
Input Password : <input type="password">
</div>
<div ng-show="Ins_Check == 'O'">
The password is Correct!
</div>
DBデータ(inform.Ins_Check)で、データが'O'でない場合、入力パスワードコードを表示します。または、データが「O」の場合は、「The password is Correct!」という言葉を表示します。
どのコードを入力すればよいですか?
または、別の関数を使用する必要がありますか?