Policy as function parameter?

1

Is it possible to set directives as parameters of a function already on the html page? I tried to serviceLogin({{login.user}},{{login.pass}}) but I believe it is not the correct one

    
asked by anonymous 15.10.2015 / 22:07

1 answer

3

Only one correction {{login.user}} is not a directive, it is an expression.

Now responding, you do not need to use the expression, just enter serviceLogin(login.user, login.pass) that the angle will understand that you are referring to the variables present in the login object.     
15.10.2015 / 22:20