angular.js - Can angular pass parameters to templates?
黄舟
黄舟 2017-05-15 17:09:47
0
2
574

Can Angular pass parameters to templates?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
滿天的星座

Just implement the function on template

 templateUrl: function($routeParams) {
           return 'tpl/home/' + $routeParams.id ;
}
巴扎黑

Isn’t the value of the template bound to the scope? I don’t know what kind of parameters you are talking about. It’s best to give the code

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template