embedded views to directives