{"action":"created","issue":{"url":"https://api.github.com/repos/ocombe/ocLazyLoad/issues/245","labels_url":"https://api.github.com/repos/ocombe/ocLazyLoad/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/ocombe/ocLazyLoad/issues/245/comments","events_url":"https://api.github.com/repos/ocombe/ocLazyLoad/issues/245/events","html_url":"https://github.com/ocombe/ocLazyLoad/issues/245","id":110163708,"number":245,"title":"Unknown provider","user":{"login":"Jeevanandanj","id":11751821,"avatar_url":"https://avatars.githubusercontent.com/u/11751821?v=3","gravatar_id":"","url":"https://api.github.com/users/Jeevanandanj","html_url":"https://github.com/Jeevanandanj","followers_url":"https://api.github.com/users/Jeevanandanj/followers","following_url":"https://api.github.com/users/Jeevanandanj/following{/other_user}","gists_url":"https://api.github.com/users/Jeevanandanj/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeevanandanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeevanandanj/subscriptions","organizations_url":"https://api.github.com/users/Jeevanandanj/orgs","repos_url":"https://api.github.com/users/Jeevanandanj/repos","events_url":"https://api.github.com/users/Jeevanandanj/events{/privacy}","received_events_url":"https://api.github.com/users/Jeevanandanj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-07T06:57:43Z","updated_at":"2015-10-07T12:26:35Z","closed_at":null,"body":"Hi I am using ocLazyload v1.0.5. \r\n\r\nPreviously Someone raised an issue regarding this (using the example textangular). I've done using the same example like following. But I got the issue.\r\n\r\nIn config\r\n  *  {\r\n            // Regarding AngularChart\r\n\r\n            name: 'AngularChart',\r\n            files: [\r\n                   'assets/angularjs-chartjs/angular-chart.css'\r\n                   , 'scripts/angular-chartjs/Chart.js'\r\n                   , 'scripts/angular-chartjs/angular-chart.js'\r\n\r\n                 ]\r\n            , serie: true\r\n            , cache: true\r\n        }\r\n\r\nIn routing\r\n  *  \r\n$routeProvider\r\n\r\n        .when('/dashboard', {\r\n            title: 'DASHBOARD',\r\n\r\n            templateUrl: 'App/Dashboard/_Dashboard.html',\r\n            controller: 'DashboardController',\r\n            caseInsensitiveMatch: true,\r\n            resolve: {\r\n                loadTextAngular: ['$ocLazyLoad',\r\n                  function ($ocLazyLoad) {\r\n                      console.log(1);\r\n                      return $ocLazyLoad.load('AngularChart');\r\n                  }\r\n                ],\r\n\r\n                loadMyCtrl: ['$ocLazyLoad', 'loadTextAngular',\r\n                  function ($ocLazyLoad, loadTextAngular) {\r\n                      console.log(2);\r\n                      return $ocLazyLoad.load({\r\n                          files: ['App/Dashboard/dashboardService.js','App/Dashboard/dashboardCtrl.js']\r\n                      });\r\n                  }\r\n                ]\r\n            }\r\n\r\nAfter doing this, I got the following issue.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/11751821/10330911/c7f98d50-6cee-11e5-8a31-b39cec22cc99.png)\r\n"},"comment":{"url":"https://api.github.com/repos/ocombe/ocLazyLoad/issues/comments/146181065","html_url":"https://github.com/ocombe/ocLazyLoad/issues/245#issuecomment-146181065","issue_url":"https://api.github.com/repos/ocombe/ocLazyLoad/issues/245","id":146181065,"user":{"login":"Jeevanandanj","id":11751821,"avatar_url":"https://avatars.githubusercontent.com/u/11751821?v=3","gravatar_id":"","url":"https://api.github.com/users/Jeevanandanj","html_url":"https://github.com/Jeevanandanj","followers_url":"https://api.github.com/users/Jeevanandanj/followers","following_url":"https://api.github.com/users/Jeevanandanj/following{/other_user}","gists_url":"https://api.github.com/users/Jeevanandanj/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeevanandanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeevanandanj/subscriptions","organizations_url":"https://api.github.com/users/Jeevanandanj/orgs","repos_url":"https://api.github.com/users/Jeevanandanj/repos","events_url":"https://api.github.com/users/Jeevanandanj/events{/privacy}","received_events_url":"https://api.github.com/users/Jeevanandanj/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T12:26:35Z","updated_at":"2015-10-07T12:26:35Z","body":"\r\n  * I could solve the issue like following. Is this the correct method to solve?\r\n```\r\n resolve: {\r\n\r\n        loadTextAngular: ['$ocLazyLoad',\r\n          function ($ocLazyLoad) {\r\n              console.log(1);\r\n              return $ocLazyLoad.load('AngularChart').then(function(res) {\r\nreturn $ocLazyLoad.load({\r\n                  files: ['App/Dashboard/dashboardService.js','App/Dashboard/dashboardCtrl.js']\r\n              });\r\n\r\n              //return res.\r\n              }, function(err) {\r\n                console.error(err);\r\n              });\r\n          }\r\n        ],\r\n}\r\n```"}}