Not able to include Ionic angular bindings [SOLVED]

Hello,

I’m fairly new at AngularJS and I’m just trying out the Ionic framework. I’ve come across a problem when I’m trying to include Ionic as a dependency in AngularJS. I have included the ionic.js and ionic-angular.js script in my index.html but when I try to add ‘ionic’ as a dependency in my app.js file i get the following error:

Uncaught Error: [$injector:modulerr] Failed to instantiate module todoAppApp due to:
Error: [$injector:modulerr] Failed to instantiate module ionic due to:
Error: [$injector:modulerr] Failed to instantiate module ionic.service due to:
Error: [$inje……1)

I used Yeoman to generate the app skeleton and bower to install the ionic module.

Thanks in advance! :slight_smile:

I was able to fix the problem by including the ionic.bundle.js instead of the two scripts.