angularjs输入型收音机不检查为什么?

时间:2017-05-09 15:43:39

标签: javascript angularjs

我有两个输入广播:enter image description here

操作工作的好点我点击offre我有输入文本我可以搜索offre和whene我点击entrepises客户我有输入文本,我可以搜索企业。但输入点击未检查为什么? 这是我的代码html:

  <label class="radio-inline"><input type="radio" name="{[{showHideTest1}]}" ng-model="showHideTest1" ng-value="{[{showHideTest1}]}" ng-change='newValue()'>Entreprises clientes</label>



 <label class="radio-inline"><input type="radio" name="{[{showHideTest1}]}" ng-model="showHideTest2" ng-value="{[{showHideTest2}]}" ng-change='newValue2()'>Offres</label>

这在我的控制器中

var adminApp = angular.module('adminApp', ['ngSanitize', 'xeditable', 'ngFileUpload', 'ui.bootstrap', 'destegabry.timeline', 'slick', 'bootstrapLightbox', 'angular-loading-bar']).config(['$interpolateProvider', function ($interpolateProvider) {
        $interpolateProvider.startSymbol('{[{').endSymbol('}]}');
    }]);
  adminApp.controller('adminCtrl', ['$scope', '$modal', '$http', '$compile', function ($scope, $modal, $http, $compile) {
     $scope.showHideTest1 = true;
        $scope.showHideTest2 = false;
    $scope.newValue = function () {
        $scope.showHideTest1 = true;
        $scope.showHideTest2 = false;

       return true;

    };
    $scope.newValue2 = function () {
       $scope.showHideTest1 = false;
       $scope.showHideTest2 = true;
       return true;
    };
 }]);

谢谢stackoverflow

0 个答案:

没有答案