I have a code and I want to loop throught the array in json format by using ng-repeat and ng-init.
But the code isn't working.
Below is the following code.
<!DOCTYPE html>
<html ng-app="">
<head>
<title></title>
</head>
<body>
<h1>
ng - repeat
</h1>
<hr />
<div ng-init="myFavLan=[{name:'PHP',extension:'.php'},
{name:'Javascript',extension:'.js'},
{name:'HTML',extension:'.html'}
]">
<p ng-repeat="language in myFavlan">
Name : {{ language.name }} <br />
Extension : {{ language.extension }}
</p>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
</body>
</html>
Please note that I am a beginner in angularjs