Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

$transclude is not a function  #3559

@nikkwong

Description

@nikkwong
  .directive('modalTransclude', function () {
    return {
      link: function($scope, $element, $attrs, controller, $transclude) {
        $transclude($scope.$parent, function(clone) {
          $element.empty();
          $element.append(clone);
        });
      }
    };
  })

upon trying to open a modal I am getting the TypeError:

TypeError: $transclude is not a function
    at link (http://localhost:3000/static/bootstrap.js:1918:9)
    at nodeLinkFn (http://localhost:3000/static/angular.js:5435:13)
    at compositeLinkFn (http://localhost:3000/static/angular.js:4911:15)
    at nodeLinkFn (http://localhost:3000/static/angular.js:5429:24)
    at compositeLinkFn (http://localhost:3000/static/angular.js:4911:15)
    at nodeLinkFn (http://localhost:3000/static/angular.js:5429:24)
    at http://localhost:3000/static/angular.js:5589:13
    at http://localhost:3000/static/angular.js:6672:11
    at wrappedCallback (http://localhost:3000/static/angular.js:9769:81)
    at wrappedCallback (http://localhost:3000/static/angular.js:9769:81) <div class="modal-content" modal-transclude="">

Anyone know how this could originate? Thanks :-)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions