mercredi 30 mars 2016

AngularJS unit test Directive's attribute value

I have a directive that looks like this:

<foo bar="5"></foo>

where bar is an attribute and not defined in the scope property of the DDO. How can I write a unit test to assert that the value of bar is 5?

Aucun commentaire:

Enregistrer un commentaire