Skip to content
This repository was archived by the owner on Feb 9, 2020. It is now read-only.
This repository was archived by the owner on Feb 9, 2020. It is now read-only.

angular.module(...).decorator is not a function #275

@op1ekun

Description

@op1ekun

When batarang is on there's no .decorator() method in angular.module API.

Example:

angular.module( 'Demo', []);

angular.module('Demo')
    .factory('greeting', function greetingFactory() {
        // I return a greeting for the given name.
        return function (name) {
            return "Hello " + name + "." ;
        }
    });

angular.module('Demo')
    .decorator('greeting', function greetingDecorator($delegate) {

        return function() { 
            return $delegate(name) + ' How are you doing?';
        };
    });

Trying to call .decorator() gives me:

angular.module(...).decorator is not a function

ENV:
System: WIndows Server 2012 R2
Chrome: 46.0.2490.80 m
Plugin: 0.10.1
Angular: 1.4.7

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions