Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ngMock running in angular1 app #14248

@char0n

Description

@char0n

Hello,

I having problem setting up ngMock in angular1 app. I have created the plunker to demonstrate the problem. http://plnkr.co/edit/UQI34twF0tLDOtoXTXGw?p=preview

What is the current behavior?

Interpolation of <p>Hello {{name}}!</p> will not happen.

What is the expected behavior?

Result of interpolation is Hello World!

What is the motivation / use case for changing the behavior?

I am trying to use ngMock in hybrid angular1/angular2 application. ngMock is causing application not to start, so I decided to create minimal angular1 application and try to load ngMock. After loading ngMock and adding it as an app dependency event angular1 application stops working.

*Which versions of Angular, and which browser / OS are affected by this issue? *

angular: angular 1.5.0
OS: windows 8.1
Browser: Chrome 49.0.2623.87 m

Other information (e.g. stacktraces, related issues, suggestions how to fix)

When I modify app.js from

var app = angular.module('plunker', ['ngRoute', 'ngAnimate', 'ngSanitize', 'ngMock'])

to

var app = angular.module('plunker', ['ngRoute', 'ngAnimate', 'ngSanitize']);

...everything works as expected.

Can you please advice ? Thank you

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions