Angular 1.5 Custom directive to Component
I've upgraded to Angular 1.5 which now supports the .component() helper method in the efforts to help users transition to AngularJs 2. Unfortunately there are not many tutorials out there on it. I have the following simplified custom directive and template URL. Can anyone help me write this in .component() form? By doing this I should get the basics of it and and should be able to use it for more complex directives. Thanks in advance. DIRECTIVE angular.module("formText", []) .directive("formText",['$http','formService','$mdDialog', function($http,formService,$mdDialog){ return{ scope:{headId:'