your example says: Tests can be configured in your module's config block:
myApp.config(function (adaptiveTemplatingProvider) {
var isMobile = $window.matchMedia('(max-width: 767px)').matches;
adaptiveTemplatingProvider.addTest('mobile', isMobile);
})
The variable $window cannot be used in config(), only in run(). Perhaps you'd like to fix that in your readme.md.
Hi,
your example says: Tests can be configured in your module's config block: myApp.config(function (adaptiveTemplatingProvider) { var isMobile = $window.matchMedia('(max-width: 767px)').matches; adaptiveTemplatingProvider.addTest('mobile', isMobile); })
The variable $window cannot be used in config(), only in run(). Perhaps you'd like to fix that in your readme.md.