Added support for ngTemplate as an element directive.