Not able include ionic module in an angualar project


#1

I am not able to include ionic module into an native angular project.I am getting an error as Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/undefined/$injector/modulerr?p0=PaybackApp&p1=E…http%3A%2F%2Flocalhost%3A4502%2Fetc%2Fclientlibs%2Fangularjs.js%3A28%3A374) .

I am using angular js version v1.2.0 and v1.0.0-beta.13.


#2

In what order did you use script files in script tag. Ionic should be after angular js. Also you need to create a dependency on ‘ionic’ module in your apps main module.


#3

Just a warning, don’t try to include ionic.bundle.js with angular, as the bundle file already includes angular in it.


#4

The ionic js is loaded after angular js and I am not using ionic.bundle.js I am just using ionic.min.js to load ionic.I have added ionic dependency in my main module but still the error exist.
Refer attached screen shots


#5

From the error URL it might be a problem due to ngRoute module. Try removing it. Ionic uses ui-router for its routing purpose. You need to include it as well.