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
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
Only one correction {{login.user}}
is not a directive, it is an expression.
serviceLogin(login.user, login.pass)
that the angle will understand that you are referring to the variables present in the login object.