can't test Angular app initialized by angular.bootstrap(document)
See original GitHub issueI 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:
- Created 10 years ago
- Comments:6 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Thanks!