Blame view

backend/web/js/angular_js.js 483 Bytes
4828b892   Mihail   after merge with ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  var app = angular.module("BackendApp", []);
  
  app.controller("SampleAppCtrl", function ($scope) {
      $scope.hideElem1 = true;
      $scope.hideElem2 = false;
      $scope.buttons = [
          {status: true, data:'Основные данные'},
          {status: false, data:'Юридическое лицо'}
  
      ];
      $scope.ShowMe =function(item){
          $scope.buttons.forEach(function(element){
              element.status = false;
          });
          item.status = true;
      }
  });