Announcement

Collapse
No announcement yet.

Angular Js giving error for custom directive "[$injector:unpr] "

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Angular Js giving error for custom directive "[$injector:unpr] "

    Hi Team,

    In our project we are using minified angular js 1.6.1 and one of our custom directive is giving console error as Error: [$injector:unpr] http://errors.angularjs.org/1.6.1/$injector/unpr?p0=aProvider%20%3C-%20a%20%3C-%20onSlideFinishRenderDirective . Please help us in providing the solution

    code sample is given below

    app.directive('onSlideFinishRender', function ($timeout) {
    return {
    restrict: 'A',
    link: function (scope) {
    if (scope.$last === true) {
    $timeout(function () {
    //scope.$emit('ngLocalSlidesFinished');
    videosList.initHomeYoutubeAPICalls();
    videosList.initFlexsliders();
    });
    }
    }
    }
    });

    #2
    Hello. We cannot answer JavaScript support questions regarding Angular.

    You might want to try posting your question to StackOverflow.

    Comment

    Working...
    X