support ajax resource by using data-resource attribute
add ajax resource example