Angular JS ng-show表达式不起作用

时间:2017-01-05 12:36:41

标签: angularjs

状况不正常

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<span ng-show ="myAngApp1.vlaue == customer.LSpanish">
                 {{customer.LSpanish}}
                 </span>
                  <span ng-show="myAngApp1.value == customer.LChinese">
                     {{customer.LChinese}}
                 </span>

3 个答案:

答案 0 :(得分:2)

写下这个:

<span ng-show="myAngApp1.value ==customer.LChinese">
        {{customer.LChinese}}
</span>

只需删除插值。

答案 1 :(得分:1)

确保在控制器中有有效值,并且在几次操作后加载视图时使用$ scope。$ apply()

控制器 -

->line( new \Illuminate\Support\HtmlString('Hello <strong>World</strong>') )

查看 -

      $scope.myAngApp1.vlaue = "ΤΑΜΕΙΟ";
      $scope.customer.LSpanish = "ΤΑΜΕΙΟ";

答案 2 :(得分:0)

您没有使用正确的合成器:

ps -ae| grep lion