javascript - AngularJS directive not showing template but others working fine -


i trying add angularjs directive app reason not working. have added other directives before in same way working. have posted code below.

html include directive

<section class="section-wrap" data-ng-controller="pvprofileviewcontroller"> <div class="container bg_white">     <div>         <pv-profile-password-reset pv-user="user"></pv-profile-password-reset>     </div>     <div>         <pv-profile-email-update pv-user="user"></pv-profile-email-update>     </div>  </div>   </section> 

angularjs directive file

'use strict';

/*  * profile email request update section  */ angular.module('mean.system').directive('pvprofileemailupdate',     ['pvprofile', '$timeout', 'global', 'utilities',      function (pvprofile, $timeout, global, utilities)      {          function controller($scope)          {              $scope.global = global;               $scope.darkout = false;           }            function link(scope, element, attrs)          {           }           return {              restrict: 'e',              templateurl: '/path/to/profile_email_update.html',              link: link,              scope: {                  user: '=pvuser'              },              controller: controller          };      }     ] ); 

any ideas why specific directive not working others similar be?


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -