Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body ng-app="myappl">
<div ng-controller="myang">
<select ng-change="myFunc()" ng-model="home">
<option value="PHP">PHP</option>
<option value="JAVA">JAVA</option>
</select>
<div ng-class="home">
<p>{{lang}}</p>
</div>
</div>
<script>
angular.module('myappl', [])
.controller('myang', ['$scope', function ($scope) {
$scope.myFunc = function () {
$scope.lang = $scope.home;
};
} ]);
</script>
</body>
</html>
The most helpful ANGULARJS solutions
How to get client ip address using angularjs ?ANGULARJS Click to see more ... 19.6K 2.8K