use directives and template with angularjs