Though a late answer, but will be helpful for future readers:
What you should do is:
That would mean that the browser will try to access it only when the data is loaded and will be taken care by AngularJS and hence you will not get that error anymore.