Enable Attribute for directive

add supporting to use attribute beside element for directive