fixed tmpl to work with angular