In this example there is a dropdown list with Hide and Show options. When user select the Show value from the dropdown the container with text Show Example will show and other container will hide and when user select Hide value from the dropdown the Hide Example Container with different background color will show and Show Example container will hide.
<!DOCTYPE html> <html xmlns=""> <head> <title>Welcome to LearnKode - A code learning platform</title> <script src=""></script> <link rel="stylesheet" href=""> </head> <body ng-app="app"> <div ng-controller="controllerName"> <div class="row"> <div class="col-md-3"> <select class="form-control" ng-model="ishide" ng-options="t.ishide as t.text for t in temp"></select> </div> <div class="well col-md-3" style="background-color:AppWorkspace;" ng-hide="ishide">Show Example</div> <div class="well col-md-3" style="background-color:salmon;" ng-show="ishide">Hide Example</div> </div> </div> <script> var app = angular.module("app", []); app.controller('controllerName', ['$scope', function ($scope) { $scope.ishide = true; $scope.temp = [{ text: "Hide", ishide: true }, { text: "Show", ishide: false }]; }]); </script> </body> </html>