Questions tagged [angular-upgrade]

Questions related to upgrading AngularJS (v1.x) application to Angular (v2+). This tag should be used for questions related to preparing AngularJS application for upgrade, running a hybrid AngularJS/Angular application, and transitioning out of hybrid mode.

213 questions
1
vote
2 answers

Angular 8 hybrid app not recognizes AngularJS components

I started developing a hybrid application. So I have done th folllowing steps: add Angular 8 dependencies add polyfills.ts remove ng-app attribute from my root index.html do a manual bootstrap of AngularJs app How looks my Angular init…
kirill.login
  • 899
  • 1
  • 13
  • 28
1
vote
0 answers

Angular UpgradeModule cannot downgrade @Directive

I am trying to work around not being able to downgrade an Angular 8 @Directive using UpgradeModule. I have a nested angular material component that needs to hook into cdkScrollable. My hierarchy look likes this:
lostintranslation
  • 23,756
  • 50
  • 159
  • 262
1
vote
0 answers

angular upgrade to 8 - errors

I am trying to upgrade my angular application to angular 8, webpack 4. Got below 3 errors: TS2339: Property 'decorate' does not exist on type 'typeof Reflect'. TS2539: Cannot assign to 'HeroComponent' because it is not a variable. TS2306:…
imacoder
  • 166
  • 1
  • 11
1
vote
1 answer

Asp.Net MVC Razor app with AngularJS migration to Angular 8

I have a .Net web app running .Net Framework 4.6.1 with Razor and AngularJS 1.7.5 and we wish to migrate to Angular 8. Routing is being done in .Net. The HTML contains both Razor and AngularJS logic to render the UI. Sample Razor/Angular…
Rachel
  • 11
  • 3
1
vote
1 answer

Error 'angular is not defined' while upgrading AngularJS1 component

I'm trying to do upgrade components written in AngularJS1 to Angular6. I'm taking the approach of having the wrappers for all the existing AngularJS1 component by extending "UpgradeComponent" placed under the folder "directive-wrappers" in my…
Krishnan
  • 958
  • 5
  • 21
  • 44
1
vote
1 answer

How to use Angular 2 component in Angular 1 app using @angular/upgrade

This question might be duplicate but I have tried all possible options. I am trying to use my Angular 2 component in Angular 1 app using @angular/upgrade. angular2 files :- simple hello component in app/components/hello. hello.component.ts import {…
Piyush Jain
  • 1,895
  • 3
  • 19
  • 40
1
vote
0 answers

How to fix 'events.js:174 throw er; // Unhandled 'error' event ^ TypeError: respond is not a function'

I am trying to upgrade angular 2 to latest version. I am done with all procedure in package json but the problem with the older node version. I am getting this error. events.js:174 throw er; // Unhandled 'error' event ^ TypeError:…
Suria
  • 33
  • 1
  • 7
1
vote
0 answers

App doesn't load after migrating from Angular 7 to 8

Migrated my app from Angular 7 to 8 and everything works fine. Unfortunately when deployed on AWS S3 when trying to open in it in a browser (Safari, Chrome) this error appears in the console: TypeError: undefined is not an object (evaluating…
hubertinio
  • 44
  • 5
1
vote
1 answer

Is it necessary for converting all angularjs controllers into angularjs components(v1.5+) for making the hybrid app work?

I have a pretty large AngularJS(v1.5) application which contains numerous controllers. I want to migrate the app to the latest Angular version(v7) using the upgrade module which runs both the old and the new frameworks together, allowing for an…
1
vote
1 answer

Best way to send event from AngularJS parent component to Angular 7 child component? (ngUpgrade)

I have an AngularJS (1.7) app which is being migrated to Angular 7, using ngUpgrade. So the AngularJS and Angular frameworks are running at the same time, new components are written in Angular, and sometimes these modern Angular components are used…
Mason
  • 5,071
  • 4
  • 25
  • 24
1
vote
1 answer

Angular Hybrid Application Form Validation

Im upgrading a AngularJS app to Angular5. Im migrating some components from AngularJS to Angular5, but not all the other windows of the app that use ng-form to form validation.
1
vote
2 answers

Angular downgradeComponent not being created

I have just setup a hybrid AngularJS / Angular 5 application with downgradeModule. I have converted a very small component from AngularJS to Angular but it is never being created. I have put console.logs throughout the component to see if certain…
Chris
  • 26,744
  • 48
  • 193
  • 345
1
vote
3 answers

$rootScope.new() in Angular 2+

I am upgrading an application from AngularJS (v 1.5) to a new version of Angular Acording to the documentation to proceed to the upgrade $rootScope it is not available in the recent versions. I already removed the $apply() but I have some doubts…
saomi
  • 855
  • 5
  • 16
  • 38
1
vote
0 answers

Decoupling angular and the ui thread with web workers, does it work in an upgrade project?

I came across the possibility to decouple angular from the ui thread to improve frontend responsiveness and performance. Usual problem in the typical single-page application (SPA) is that our code is usually run in a single thread. This means…
Tim
  • 409
  • 1
  • 6
  • 15
1
vote
1 answer

@angular/upgrade/static 404 not found

I have application in AngularJS and I am trying to make hybrid application to be able to migrate on angular 5. But unfortunately I have the error : GET http://localhost:53538/@angular/upgrade/static 404 (Not Found) It happens after I add…
Andrei
  • 341
  • 7
  • 23