How do you pass multiple values to a directive?

Posted by Jennifer | Updated on

A directive can take any valid javascript expression. So if you want to pass multiple values then you can pass in a JavaScript object literal.

Let’s pass object literal to an avatar directive as below:

Now let us configure avatar directive globally,


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers