Example:
<html >
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
</head>
<body>
<div ng-app="" ng-init="furit=['rag','rrr']">
<p>Result{{ furit[1] }}</p>
</div>
<div ng-app="" ng-init="furit=['te','codf']">
<p>Result <span ng-bind="furit[1]"></span></p>
</div>
</body>
</html>
Result:
Result rrr
<html >
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
</head>
<body>
<div ng-app="" ng-init="furit=['rag','rrr']">
<p>Result{{ furit[1] }}</p>
</div>
<div ng-app="" ng-init="furit=['te','codf']">
<p>Result <span ng-bind="furit[1]"></span></p>
</div>
</body>
</html>
Result:
Result rrr
No comments:
Post a Comment