Pass bindings to TemplateUrl in Angular's component
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: My component object looks like this: var options = { bindings : { title : '<' , rows : '<' }, controller : registers , templateUrl : function ( $element , $attrs ) { return '/app/dashboard/registers/register.html' ; } }; I need access to the bindings title and rows in my register.html markup. I understand $element and $attrs but I'm not quite sure how to inject that into a templateUrl which is a string reference to an HTML file. I would like to be able to use those values in the template as such: <p> Title: {{vm.title}} </p> <p>