Software Archive
Read-only legacy content
17061 Discussions

'angular' is not defined. (W117)

Kamran_I_
Beginner
1,262 Views

Hi,

I am testing the intel XDK IDE and created a very simple test app with the HTML5 + Cordova Ionic Framework template,

I am getting " 'angular' is not defined. (W117) " error Also there is an issue with activate_page("#uib_page_1");

I attached a screen shot with the errors, thanks in advance for your help.

Best Regards,

Kamran

0 Kudos
3 Replies
Jakub_K_3
Beginner
1,262 Views

If you can confirm you have angular and activate_page then this is just JS hint problem.

At the beginning of file you may add:

/* global angular */

etc to tell JSHint you already have this variable.

0 Kudos
Kamran_I_
Beginner
1,262 Views

Hi,

Thank you Jakub,

I have added the /* global angular */, I don't see the JSHint error about angular..,

I still have the error about 'activate_page("#uib_page_1");' as far as I know it should work like $state.go(..)

Do you know if the activate_page("#uib_page_1") was deprecated, I saw a tutorial on Intel XDK early access and it was used in order to open new page on the screen..

Tnx

Regards,

Kamran

0 Kudos
Gabriel_S_
Beginner
1,262 Views

Hi,

Just paste this on the top of your document (JS document):

/*jslint browser:true, devel:true, white:true, vars:true */
/*global $:false */
/* jshint strict: false, -W117 */

Like this:

Hope this helps.

0 Kudos
Reply