The error is maybe in the call of your angular's file Try this code it works perfectly
> <!DOCTYPE html> > <html> > <head> > <meta http-equiv="content-type" content="text/html" /> > <meta name="author" content="Portal Associates" /> > <title>Untitled 33</title> > <script > src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.6/angular.min.js"></script> > > </head> > <body> > <div ng-app="myApp" ng-controller="showDiv"> > <div class="block">START HERE!<div> > <button class="" ng-click="getPanel_1()">Button1</button> > <button class="" ng-click="getPanel_2()">Button2</button> > <button class="" ng-click="getPanel_3()">Button3</button> > > <div ng-show="divA">con1</div> > <div ng-show="divB">con2</div> > <div ng-show="divC">con3</div> > </div> > <script> > var app = angular.module('myApp', []); > > app.controller('showDiv', function($scope) { > $scope.getPanel_1 = function(){ > $scope.divA = true; > $scope.divB = false; > $scope.divC = false; > > } > $scope.getPanel_2 = function() { > $scope.divA = false; > $scope.divB = true; > $scope.divC = false; > > } > $scope.getPanel_3 = function(){ > $scope.divA = false; > $scope.divB = false; > $scope.divC = true; > > } > }); > </script> > </body> > </html> > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
