I'm writing a small application where I have all AngularJS code inside of one file. This file is included in every HTML page. How would I filter which dependent modules are needed for specific HTML page? I.e. if I have e.g.:
var app = angular.module('MyApp', ['ngTouch', 'ngMessages']);
but I only need
ngTouch on some pages and on the other pages only
ngMessages, how would I prevent loading the other, unnecessary dependent module for each page?