Create lazy-include directive to only include templates when template would be visible. Create helper service Gettemplate to emulate ng-include behavior.