Próbuje podzielić mój kod na osobne pliki, wcześniej jak było wszystko w jednym to działało
W pliku app.js mam
angular.module('app',['ngRoute','ngResource','checklist-model'])
.config(function($routeProvider,$httpProvider){
$routeProvider
.when('/',{
templateUrl: 'partials/main.html',
controller: 'MainController',
})
w pliku MainController.js
angular.module('app')
.controller('MainController', function (...){...}
I po odpaleniu strony dostaje error
Error: [$controller:ctrlreg] The controller with the name 'MainController' is not registered.