bug fixed in ng-directive whoe not set controller and template in created directive