On my main page it shows me the error: Uncaught ReferenceError: Insidetv is not defined
, that is, the Controller is not finding the Model file. But if I put the two in the same file it works perfectly.
On the main page you are first calling the Model and then the Controller and both pages are being found.
Model
var Insidetv = angular.module('Insidetv', []);
Insidetv.config(function($interpolateProvider){
$interpolateProvider.startSymbol('[{');
$interpolateProvider.endSymbol('}]');
});
Controller
Insidetv.controller('ListaController', function($scope, $http) {
$scope.dragStop = function(e, ui) {
console.log('ok');
}
$('.drop').sortable({
connectWith: "ul",
revert: true,
appendTo: '.lista',
helper: 'clone',
stop: $scope.dragStop
});
});