Questions tagged [ng-upgrade]

Using the `upgrade` module in Angular to incrementally upgrade an AngularJS application to Angular.

157 questions
1
vote
1 answer

NPM Error old lockfile The package-lock.json file was created with an old version of NPM

package-lock.json creating problem for upgrading Angular 9 to 10 How can I create a fresh package-lock.json file and update Angular 9 to 10? I want to update Angular 9 to 10 and want to solve this package-lock.json error.
1
vote
1 answer

Should .angular cache folder add to .dockerignore?

Recently updated a Angular project with the ng update command from version 12 to version 13, at build time a new folder '.angular/cache' was created by Angular CLI, and in updates progress, adds this folder to the .gitignore file. I want to know,…
behroozbc
  • 1,992
  • 2
  • 12
  • 25
1
vote
1 answer

Property 'subscribe' does not exist on type 'Observable'

I am trying to get data from googleTagmanger. But I am getting error as "Property 'subscribe' does not exist on type 'Observable'" Below is my code. this.translate.get('newtest.testsimulation').subscribe((res: String) => { pageLabel…
Bhushan Khaladkar
  • 420
  • 1
  • 7
  • 20
1
vote
0 answers

How to use UpgradeComponent to a AngularJS directive that uses $attrs in Angular

Currently I have this .directive in AngularJS: aegroApp.directive('poorLegacy', function () { return { restrict: 'E', scope: { hasSomething: '=?', anotherBinding: '@', }, controller, templateUrl: function (_, attrs)…
dev_054
  • 3,448
  • 8
  • 29
  • 56
1
vote
1 answer

Can't bind to 'ngif' since it isn't a known property of 'span'

I have created a Hybrid app using ngUpgrade and am currently going through my directives upgrading them to Angular components. I have ran into this issue and cannot seem to fix it Can't bind to 'ngif' since it isn't a known property of 'span' Most…
Chris
  • 26,744
  • 48
  • 193
  • 345
1
vote
1 answer

Angular Router not updating browser URL when called from AngularJS

I have an AngularJS application, which I'm in the process of converting to a hybrid Angular/AngularJS application using ngUpgrade. The AngularJS application is unusual in that it doesn't use the AngularJS or Angular UI router - instead it has its…
Dan King
  • 3,412
  • 5
  • 24
  • 23
1
vote
1 answer

AoT compilation for angular 8 downgraded module

In my, Angular project build is done by gulp, and I need to set up a hybrid angular app. Currently, I do it with webpack the following way: gulp runs webpack and injects it's bundle to dist folder previously produced by gulp. My webpack…
valentin.mu
  • 93
  • 1
  • 8
1
vote
0 answers

Hybrid angular app throwing error "'./app.module.ajs.js' does not provide an export named 'default'"

I am attempting to convert my AngularJS project to run as a hybrid (i.e. 1.x alongside 2+) following the bootstrapping steps provided at the angular.io guide page provided specifically for the task. I have followed the guide with some modifications…
spb
  • 4,049
  • 6
  • 22
  • 30
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
0 answers

what version of rxjs does not reference rxjs-compat?

For many days I've been trying to follow and figure out the upgrade process for ng 5.x to 6.x. I keep getting build issues about not finding rxjs-compat/Observable. I'm not using nor am I including the rxjs-compat, what version of rxjs should I be…
edjm
  • 4,830
  • 7
  • 36
  • 65
1
vote
0 answers

AngularJS directive does not work inside Angular

I have a simple Angular 7 component, that I'm using to normalize a page markup. page-title.component.ts import { Component } from '@angular/core'; import { Input } from '@angular/core'; @Component({ selector: 'my-page-title', templateUrl:…
Majesty
  • 2,097
  • 5
  • 24
  • 55
1
vote
1 answer

Downgrade Angular route component

Bit of an odd question. I have a massive AngularJS directive that should be entirely re-written. The challenge is too great to do it all at once. I was wondering if there is a way to downgrade a route component in AngularX to load in this AngularJS…
Oz Lodriguez
  • 965
  • 5
  • 16
1
vote
0 answers

Error: Script error for "app/dashboard/widgets/assignments", needed by: app/dashboard/widgets

I'm trying to migrate from Angular 1.3 to Angular 4 and my first step according to the guide on https://angular.io/guide/upgrade#migrating-to-typescript is to migrate to typescript. I changed all of the js files in one component to ts files. However…
Sinan Samet
  • 6,432
  • 12
  • 50
  • 93
1
vote
0 answers

Hybrid Angular Promise rejection

I am trying to wire up Angular 2 with AngularJs. Would anyone know why loading external js fails, inline works just fine. app.module.ts: platformBrowserDynamic().bootstrapModule(AppModule).then(platform => { console.log('Bootstrapping in Hybrid…
lucas
  • 4,445
  • 6
  • 28
  • 48
1
vote
1 answer

@Input gets the variable name from AngularJS

I am trying to migrate my AngularJS app to Angular. I have some components with bindings which needs to be converted to Angular AngularJS Code: my-comp.ts: export default { …
Dot Net Dev
  • 574
  • 8
  • 20