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.
Questions tagged [angular-upgrade]
213 questions
2
votes
1 answer
Angular update 8 to 9: NG6002: Appears in the NgModule.imports of AppModule, but itself has errors
I've searching for an answer but could not find any solution that fix the issue.
I have updated version of Angular from version 8 to version 9. Everything worked fine on 8 but after update app does not compile due to…

Michał Sawicki
- 49
- 1
- 10
2
votes
1 answer
Angular component downgraded not render in angularjs application
I'm trying to downgrade my Angular component to make it use in AngularJS app.
I looked at the documentation in Angular, but the template don't render in the page.
assistance.component.ts :
import {Component} from "@angular/core";
import…

Pouchopa
- 253
- 1
- 3
- 11
2
votes
2 answers
@material-extended/mde package has incompatible dependency error : While upgrading angular 11 to 12
Package "@material-extended/mde" has an incompatible peer dependency to "@angular/animations" (requires "^8.0.0 || ^9.0.0-0" (extended), would install "12.1.2").
Current Version :"@material-extended/mde": "^3.0.3",

Mitul Sheth
- 51
- 6
2
votes
0 answers
Error Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager" while upgrating Angular from 11 to 12
My current version is: 11.2.3
The error is: An unhandled exception occurred: Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"
I have updated my project from later versions, and have never had an update problem.
I attach…

juanjinario
- 596
- 1
- 9
- 24
2
votes
1 answer
How do you use angularjs upgraded components within an ngx-bootstrap Modal?
I have a hybrid Angular app (Angular 8.2.14 and angularjs 1.8.0) that uses Valor Software's ngx-bootstrap (5.3.2) modals. I still have several components that are angularjs and are complicated enough that I can't just upgrade them real quick.
I have…

nephiw
- 1,964
- 18
- 38
2
votes
0 answers
Inject Angular service in constructor of app.module in Hybrid Angular app
I am looking at an Angular hybrid app and its new for me.
Its app.module.ts has providers with upgraded AngularJS services under providers[..]:
It has UpgradeModule injected as:
constructor(
private upgrade: UpgradeModule
) { }
Then, there is…

sunnyshine7890
- 21
- 1
2
votes
2 answers
Unable to get AngularJS service working in Angular
I searched a lot of posts and also the official Angular documentation, but I'm not able to get an AngularJS service running in Angular. I finally came to this page https://angular.io/api/upgrade/static/UpgradeModule#examples which seems to explain…

Bernd
- 675
- 2
- 8
- 30
2
votes
2 answers
Update to Angular 9 fails
I use Angular 8 in my project and would like to upgrade to Angular 9.
I follow upgrade guide and when I run command:
ng update @angular/core @angular/cli,
I get an error message:
An unhandled exception occurred: 403 Forbidden - GET…

aponski
- 145
- 3
- 12
2
votes
1 answer
Upgrade directive from angular js to angular 8
someone can help to upgrade this directive to a angular 2+
I like this directive, cuz let me validate only float and too to copy paste the data or drop data in in it
var myApp = angular.module('myApp', ['ngStorage']);
myApp.controller('MyCtrl',…

Armando Rodriguez
- 21
- 5
2
votes
0 answers
Is there a standard way to get AngularJS to detect the initial values of an UpgradeComponent when it is loaded dynamically?
Background info:
There is a fairly common problem that was previously brought up in this github issue about an injector error when using UpgradeComponents inside of dynamically loaded entry components. I feel that I understand this well enough, and…

CShark
- 1,562
- 1
- 16
- 27
2
votes
0 answers
using storybook with for hybrid angular app
I'm trying to use storybook with my hybrid (Angular + angularjs) app.
import { AjsJsDirective } from './ajs-js.directive';
import { Component } from '@angular/core';
import { storiesOf, moduleMetadata } from '@storybook/angular';
import {…

anvlkv
- 147
- 2
- 11
2
votes
1 answer
Angular Hybrid Application, Upgraded Component with Template Function not receiving $element or $attrs
As the title says, I am working in an Angular Hybrid app. I have an old AngularJS component that uses a template function to dynamically build itself based on the inputs passed in to it.
I've upgraded that component to be useable from Angular,…

Ben Black
- 3,751
- 2
- 25
- 43
2
votes
1 answer
Get data from AJAX before loading AngularJS ap
We are preparing for upgrading our AngularJS app and refactoring for that. Currently we are running into an architectural issue:
Our app currently loads JSON through a jQuery AJAX call, this sets up all of the data and then bootstraps the app.
We…

Richard
- 4,341
- 5
- 35
- 55
2
votes
0 answers
after upgrading my angular application I have got an issue that is a little strange. Associated with RouterScroller
My application was working with angular5.0 and with material and all was working fine. I was also using the lazy loading(just if something will change that) and now I have done my upgrade with help of this page https://update.angular.io/. After that…

Tigran Asatryan
- 41
- 5
2
votes
2 answers
Equivalent of AngularJS Component require property in Angular Component
I am upgrading a large Angular 1.6 App and we have number of components which use 'require' to get access to parent component's controller. AngularJS component looks like:
var tileTextbox = {
template: '',
controller:…

pateketu
- 451
- 2
- 8