I'm new in angularjs, I'm trying to load data from my JSON file on view. JSON file have some list of lists using li. But does not get showed on my view.
Here is my 'index.html' file
<div id="navbar" class="navbar-collapse collapse">
 <ul class="nav navbar-nav navbar-right">
  <li ng-repeat="item in navbaritem.navigation">
   <a class="{{ item.class }}" href="#" ng-href="{{ item.url }}">{{ item.title }}</a>
  </li>
 </ul>
</div>
Here is my controller.js
(function(){
    var app = angular.module('myapp', []);
    app.controller('mycntrl', function($scope, $http) {
    $scope.navbaritem = [];
    $http.get('pages/navbar.json').success(function(data) {
        $scope.navbaritem = data;
    }, function (err,data) {
        if(err){
            return console.log(err);
        }
        console.log(data);
    });
 }); 
});
Here is my 'pages/navbar.json' file
{
   "general":{
      "logo":"images/logo.jpeg",
      "name" : "Company Name"
   },
   "navigation":[
      {
         "title":"Home",
         "link":"#"
      },
      {
         "title":"About",
         "link":"#"
      },
      {
         "title":"Services",
         "link":"#"
      },
      {
         "title":"Contact",
         "link":"#"
      }
   ]
}
and my output is like this {{item.title}} and also I'm getting the error 
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.6.1/$injector/modulerr?p0=myapp&p1=Error%3A%2…localhost%2Fangular-theme%2Fassets%2Fangularjs%2Fangular.min.js%3A21%3A332)
 
     
    