I am writing an AngularJS App for a system based on jQuery. Each app needs to be initiated with the code below.
How do I get this to work with my AngularJS code?
I have tried to include my entire Angular app within the function appStart(), but that doesn't work. Any ideas on how to solve this?
Init JS:
(function () {
function appStart() {
}
function genericError() {
console.error('Something went wrong');
}
TT.native.init()
.done(appStart)
.fail(genericError);
})();
My AngularJS app:
var app = angular.module('myApp', ['ui.sortable', 'ui.router']);
app.config(function ($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/specs');
$stateProvider
.state('specs', {
url: '/specs',
templateUrl: 'specs.html',
controller: 'SpecsController'
})
.state('editSp...