Java, .NET, PHP, PYTHON, ANGULAR, ML, Data Science, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"

<!DOCTYPE html>
<script type="text/javascript" src="angular.min.js"></script>
  <div ng-app="myapp" ng-controller="myctrl">

    <select ng-model="$parent.course">
      <option ng-repeat="item in arr" value="{{item}}" >{{item}} </option>

    <input type="button" value="Click" ng-click="fun()" />

  <script type="text/javascript">
   var app = angular.module('myapp',[]);

      $scope.arr = ["C","CPP","DS","JAVA","PHP","iOS","Android"];
        if ($scope.course!=undefined)
          $scope.msg = $scope.course;
          $scope.msg = 'Please choose an option';



Post a Comment

POST Answer of Questions and ASK to Doubt

Previous Post Next Post