Using the `upgrade` module in Angular to incrementally upgrade an AngularJS application to Angular.
Questions tagged [ng-upgrade]
157 questions
1
vote
0 answers
Looking for angular solution to angularJs algorithm with $compile
I have an angularJs application that I am migrating to angular (using ngUpgrade), and it ha a kind of plugin type architecture, where additional "3rd party" angularjs modules can be added to the core app.
One of the key features of app, does a kind…

Brian
- 328
- 1
- 3
- 13
1
vote
1 answer
Angular 6 hybrid app does not load AngularJS components
I aim to upgrade a large AngularJS version 1.7.3 to a hybrid app using Angular 6. I finished the preparation phase where I had to convert all my controllers/directives into an AngularJS component. I have created a new Angular 6 project skeleton with…

Nizar B.
- 3,098
- 9
- 38
- 56
1
vote
0 answers
Dependency injection in angular hybrid app (AngularJS & Angular 5)
I've got a problem with dependency injection in ngUpgraded AngularJS controller. I'd like to use toastr and Handlebars.js module in my hybrid app, but my every attempt to do it gives me erros (handlebars is necessary to handle external scripts from…

Michał
- 87
- 1
- 2
- 10
1
vote
1 answer
Upgraded AngularJS component which requires another upgraded component can't find the parent controller when using Angular content projection
I am trying to do a PoC for ngUpgrade on one module of my app, and I'm running into an issue with transclusion/content projection along with AngularJS requires.
Let's say there's a downgraded Angular component defined like:
@Component({
selector:…

ach
- 6,164
- 1
- 25
- 28
1
vote
0 answers
Errors while running hybrid angular application
I'm getting this in my console when I'm running the hybrid application. I'm bundling it through webpack(although this is not a necessity, I can something else if it works)
zone.js:32 Uncaught Error: Zone already loaded.
at…

wadepool
- 11
- 2
1
vote
0 answers
Using upgraded AngularJS compoenent in Angular, giving Error: [$injector:unpr] Unknown provider while testing
I have upgraded a AngularJS Component 'contactBox' into 'contactBoxDirective' and used in the angular component 'personInfo'.
But, while running the test cases using the TestBed, I am always getting the error
Error: [$injector:unpr] Unknown…

user1722043
- 145
- 3
- 11
1
vote
0 answers
Use Angular 5 service call inside Angular 1 application
In my scenario, I am having a complex angular 1 application which is using another script file(separate single JS file which is downloaded directly when URL is launched). This is script file is also coded in Angular 1.6 which we have migrated as a…

Srini
- 181
- 1
- 1
- 6
1
vote
1 answer
Is it ok to run hybrid Angular+AngularJS application on a live site?
I've got an AngularJS app that I'd love to upgrade to the latest version of Angular. However, the problem is that the app uses a dozen of different 3rd party libraries that don't support Angular v.2.
Is it OK to run a hybrid Angular+AngularJS…

Maksym
- 458
- 4
- 23
1
vote
0 answers
How to upgrade angularjs service with angular 5.2
What is currently the correct way to upgrade an angularjs service in a hybrid angularjs 1.4/angular 5.2 application so that i can use it in a component as a provider?
Both code bases are typescript and i use the new downgradeModule to downgrade…

JGoodgive
- 1,068
- 10
- 20
1
vote
1 answer
Angular CLI with Hybrid app ng-build
I'm currently upgrading an AngularJS app to an Angular app, using Angular CLI.
My problem is that when I build the app using ng build, it would copy all the files to the dist folder but will ignore all the AngularJS files.
For all the js files, my…

Ben
- 871
- 2
- 9
- 18
1
vote
2 answers
Use Angular 2 pages in Angular 1
Currently we have application developed in Angular 1.X but we don't want to migrate from Angular 1.X to Angular 2, Since it is very wast application it will require more effort. We want other way around . Can we use Angular 2 features within Angular…

Sheikh Shamnoon
- 43
- 5
1
vote
1 answer
Upgraded Angular service not working in angular component :cannot get Undefined error
I am working on upgrading an AngularJS app to angular.
But i have now gotten stuck.
I am tryting to get angular to handle the home route and doesn't work. The error appears to come from the upgraded service.
When i let angularJS handle the route it…

JSB
- 221
- 2
- 13
1
vote
2 answers
Reuse an angular 1 module in NativeScript angular 2 app
I would like to reuse an angular 1 module in a NativeScript - angular 2 app.
I have read about the upgrade module and its UpgradeAdapter service in angular 2 docs.
[...] service that can bootstrap and manage hybrid applications that support both…

Fidan Hakaj
- 6,818
- 3
- 30
- 33
1
vote
1 answer
How can I use ng-upgrade in ionic 2 framework
I have a code written in AngularJS1.5 and I want to use this code in another app that will be built on ionic 2 framework. I tried to follow the guidelines of using the ngupgrade module to make the AngularJS1.5 code compatible with ionic 2 framework…

hex
- 515
- 2
- 4
- 13
1
vote
1 answer
angular-phonecat upgrading from 1.x : error Unknown provider: phoneProvider <- phone
I'm using this tutorial to lean how to migrate from Angular1 to Angular2.
At the end of the step 4 Upgrading the Phone Service,
after fix typo error,
when I want to check the running application with "npm start", I got this error :
Unknown provider:…

Laurent Trillaud
- 364
- 2
- 9