function replaceElementWithMarker(element, src) {
      // A comment marker is placed for debugging purposes
      var comment = $compile.$$createComment ?
          $compile.$$createComment('ngMessagesInclude', src) :
          $document[0].createComment(' ngMessagesInclude: ' + src + ' ');
      var marker = jqLite(comment);
      element.after(marker);

      // Don't pollute the DOM anymore by keeping an empty directive element
      element.remove();
    }
function replaceElementWithMarker(element, src) {
      
      var comment = $compile.$$createComment ?
          $compile.$$createComment('ngMessagesInclude', src) :
          $document[0].createComment(' ngMessagesInclude: ' + src + ' ');
      var marker = jqLite(comment);
      element.after(marker);

      
      element.remove();
    }
function replaceElementWithMarker ( element , src ) { // A comment marker is placed for debugging purposes var comment = $compile . $$createComment ? $compile . $$createComment ( 'ngMessagesInclude' , src ) : $document [ 0 ] . createComment ( ' ngMessagesInclude: ' + src + ' ' ) ; var marker = jqLite ( comment ) ; element . after ( marker ) ; // Don't pollute the DOM anymore by keeping an empty directive element element . remove ( ) ; }
Helpers
Helpers