feat(modal): properly leverage $templateCache (fixes #455)