Questions tagged [ng-upgrade]

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

157 questions
0
votes
0 answers

Trying to import Angularj1.5 component into Angularjs2.0 possible?

I am in the middle of migrating from Angular1 to Angular2. I can easily importing angular2 componets in the angular1 but I am not able to run Angularjs1 components within Angularj2 and getting error message "No Directive annotation found on…
Shinya Koizumi
  • 1,003
  • 1
  • 11
  • 26
0
votes
1 answer

How to configure angular 4 with angular 1?

I have designed a web app using angularjs with angular material. Now, i want to convert some parts to be an angular 4 in the angularjs web app. i have added npm packages for angular 4. But scss files are not getting applied. How to fix this?…
ARD
  • 145
  • 2
  • 15
0
votes
1 answer

Angular 4 error with angular core change detection differs after upgrade from 2

I have a ng2 website I upgraded to ng4. On building, I get an error ERROR in /home/docker/urlmgr-client/node_modules/@angular/core/src/change_detection/differs/iterable_differs.d.ts (15,48): error TS2304: Cannot find name 'Iterable'. It is the only…
DFBerry
  • 1,818
  • 1
  • 19
  • 37
0
votes
1 answer

Need help bootstrapping an AngularJS app into an Angular2 CLI generated app using ngUpgrade

I've been wrestling with this for almost a day now, so I think it's time I give up and ask for help. I started with a trivial AngularJS application (1.4.7) that should simply display "Greetings from Angular 1", and have been trying to bootstrap that…
Scott Schafer
  • 487
  • 3
  • 14
0
votes
1 answer

forwardRef not identifying ng2 module when they are in seperate files

I have been trying to use ng-upgrade as an upgrade strategy to angular2 with limited success, I have successfully added an angular2 app and downgraded it's components, but the implementation is not very flexible. I get an error…
Avi Farada
  • 681
  • 2
  • 7
  • 15
0
votes
1 answer

Cannot import UpgradeModule from @angular\upgrade\static Angular V2.2.1

I'm currently upgrading my AngularJS (ng1) app to Angular 2 (ng2). I'm using Angular version 2.2.1. When I'm importing UpgradeModule from @angular\upgrade\static I get the following exception: Uncaught SyntaxError: Unexpected reserved word Uncaught…
0
votes
0 answers

Upgrading angular 1 to 2

I'm trying to follow the upgrade steps for Angular 1 to 2. I've put in the following code to allow for a hybrid application: import * as angular from 'angular'; import {upgradeAdapter} from './upgrade-adapter'; angular.module('app',…
Willis
  • 161
  • 1
  • 12
0
votes
2 answers

How to make use of app(unstable structure) folder in ionic 2 inside the stable version

I have update my ionic 2 version to stable. After giving ionic start myProject blank --v2 i am getting the folder structure like ionic 1. take a look at the folder structure i got. here is my ionic info command result Cordova CLI: 6.3.0 Ionic CLI…
Mohan Gopi
  • 7,606
  • 17
  • 66
  • 117
0
votes
1 answer

angular1 to angular2 directive-function with compile

What can be done to upgrade NG-1 to NG-2 where the directive has "compile" in it. Eventhough in doc they say "compile. This will not be supported in Angular 2", can anybody suggest me if any cheats available?..
peaceUser
  • 457
  • 5
  • 19
0
votes
1 answer

NgModules not working with NgUpgrade

Angular 1 & 2 (RC5) application running in hybrid mode using ng-upgrade. Attempt to use @NgModule which doesn't work, I still have to add providers manually using: upgradeAdapter.addProvider(REACTIVE_FORM_PROVIDERS); This is preventing me from…
Ryan Langton
  • 6,294
  • 15
  • 53
  • 103
0
votes
2 answers

Angular 1 directive inside angular 2 application

We created an Angular 2 application using this awesome Angular2 Seed which works very well. So the question that I have is, how can I upgrade this Angular 1 directive: import template from './sbgOutlineButton.html!text'; var app =…
UberSwyser
  • 69
  • 2
  • 7
0
votes
1 answer

angular-phonecat upgrading from 1.x : error Failed to load template: app/phone-list/phone-list.template.html (HTTP status: 404 Not Found)

Hi 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, when I want to check the running application with "npm start", i got this error : angular.js:13920 Error:…
0
votes
1 answer

Angular2 Hybrid mode : loading Ng1 components dynamically

I am trying to load the ng1 components dynamically inside a ng2 parent component using ViewContainerRef.createComponent(). Here is the plunker https://plnkr.co/edit/HADJILztGEELg5lavfvP?p=preview However it throws following…
user3869623
  • 2,363
  • 2
  • 15
  • 19
0
votes
0 answers

Uncaught (in promise) Error: SyntaxError: Unexpected token <(…) in system.src.js

Uncaught (in promise) Error: SyntaxError: Unexpected token <(…) in system.src.js when trying to run angular1 and angular2 simultaneously using upgrade adapter. Iam using https://angular.io/docs/ts/latest/guide/upgrade.html as reference.…
0
votes
1 answer

Bootstrap Angular 2 with Angular 1

I have app.js in angular 1.4. app.js contains the following: var app = angular.module('testingBoot',[...], function(){}); I am making another file : test.ts. This contains the following : import {bootstrap} from 'angular2/platform/browser'; import…
Bhumi Singhal
  • 8,063
  • 10
  • 50
  • 76
1 2 3
10
11