error TypeError: Cannot call method 'replace' of undefined shows up during initialization. The reason - incorrect template path while putting templates to cache
e.g. $templateCache.put('src/templates/aggregateTemplate.html', -> should be $templateCache.put('aggregateTemplate.html',
the same for all templates
$templateCache.put('src/templates/cellTemplate.html',
etc...