question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

can't test Angular app initialized by angular.bootstrap(document)

See original GitHub issue

I have an app which is initialized by angular.bootstrap() as described as Manual Initialization in http://docs.angularjs.org/guide/bootstrap

 <script>
   angular.element(document).ready(function() {
     angular.bootstrap(document);
   });
 </script>

How can I run the e2e test for the app?

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
tapmantwocommented, Jun 6, 2014

If it helps, I’ve created a preprocessor for Karma that will inject the ng-app fix mentioned by vojtajina.

Code: https://github.com/tapmantwo/karma-ng-bootstrap-fix-preprocessor npm: https://www.npmjs.org/package/karma-ng-bootstrap-fix-preprocessor

0reactions
kdekootercommented, Jul 2, 2013

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cant unit test application with manual bootstrap in AngularJS - Stack ...
I was banging my head against the wall to get my unit tests to run with a ... a script tag for an...
Read more >
Why your Angular App is not Working: 11 common Mistakes
Why your Angular App is not Working: 11 common Mistakes · 1. Import required Angular Modules · 2. Don't use DOM references before...
Read more >
Entry components - Angular
A bootstrapped component is an entry component that Angular loads into the DOM during the bootstrap process (application launch). Other entry components are ......
Read more >
Angular | IntelliJ IDEA Documentation - JetBrains
The recommended way to start a new Angular application is Angular CLI. Only in this case your application is bootstrapped with a ready...
Read more >
JavaScript · Bootstrap v5.2
While the Bootstrap CSS can be used with any framework, the Bootstrap JavaScript is not fully compatible with JavaScript frameworks like React, Vue,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found