Directive as Function parameter?

Asked

Viewed 82 times

1

Is it possible to set directives as parameters of a Function already on the html page? I tried to do serviceLogin({{login.user}},{{login.pass}})but I don’t think it’s right

1 answer

3


only a correction {{login.user}} is not a directive, is an expression.

Now responding, you do not need to use the expression, just insert serviceLogin(login.user, login.pass) that the angular will understand that you are referring to the variables present in the login object.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.