0
Я пытаюсь создать приложение с Angularjs и Intel XDK, но, похоже, XDK удаляет некоторые теги из html, поэтому Angularjs не будет работать.Angularjs и Intel XDK плохо смешиваются
Вот код:
<script src='intelxdk.js'></script>
<script src='vendors/angular.js'></script>
<script type="text/javascript">
var onDeviceReady=function(){
intel.xdk.device.hideSplashScreen();
var bApp = angular.module('bApp', []);
bApp.controller('MenuCtrl', function ($scope) {
$scope.test = 'Hello world!';
});
};
document.addEventListener("intel.xdk.device.ready",onDeviceReady,false);
</script>
<div ng-app="bApp">
<div id="MenuCtrl" ng-controller="MenuCtrl">
{{test}}
</div>
</div>
А вот сообщение об ошибке в консоли:
Uncaught Error: [$injector:modulerr] Failed to instantiate module bApp
due to: Error: [$injector:nomod] Module 'bApp' is not available!
You either misspelled the module name or forgot to load it.
If registering a module ensure that you specify the dependencies as
the second argument.
Любые идеи? Спасибо