Skip to content

treygriffith/oz-attr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oz-attr

Attribute tags for Oz.

Installation

Using component:

$ component install treygriffith/oz-attr

Using a script tag (UMD compatible)

<script src="./oz-attr.min.js"></script>

Usage

Bind an attribute's value to the value of the named property.

Notation:

<img oz-attr="src:photo.jpg;class:avatar"></div>

Example:

var context = {
  imageUrl: "https://www.google.com/images/srpr/logo11w.png"
};
<img oz-attr="src:imageUrl" src="https://www.google.com/images/srpr/logo11w.png">

License

MIT

About

Attribute tags for Oz

Resources

Stars

Watchers

Forks

Packages

No packages published