[AngularJS] Re: ERROR in compiler_1.StaticSymbolCache is not a constructor

2017-02-22 Thread norricorp
So I possibly fixed it. I created a new project and used the package.json file values in the existing project's json file. Then I removed node_modules and dist folders, rerun npm install --save-dev @angular/cli@latest and npm install and now ng serve works. > -- You received this message

[AngularJS] ERROR in compiler_1.StaticSymbolCache is not a constructor

2017-02-20 Thread norricorp
ng --version @angular/cli: 1.0.0-beta.32.3 [1.0.0-beta.31] node: 6.9.5 os: win32 x64 @angular/common: 2.2.1 @angular/compiler: 2.2.1 @angular/core: 2.4.7 @angular/forms: 2.2.1 @angular/http: 2.2.1 @angular/platform-browser: 2.2.1 @angular/platform-browser-dynamic: 2.2.1 @angular/router: 3.2.1

[AngularJS] ng serve -prod shows error

2017-02-23 Thread norricorp
Hi, I wanted to use the environment.ts and environment.prod.ts files to set some variables. I added a console.log to the service code to see if they were being set. When I run ng serve, the code compiles and the browser console shows my comment and the value is as expected; so far so good. But

[AngularJS] Re: deploying an angular 2 app

2016-09-16 Thread norricorp
So the "standard" way would be a data backend providing REST running in one application and the angular 2 app being packaged up and run as another application? > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group

[AngularJS] Re: angular 2 heroes tutorial - using a server for data

2016-09-30 Thread norricorp
> > Hi Sander, > I do not think it is a CORS issue because I did have CORS errors in the browser debugger console. These stopped when I added a grails plugin for the data server. Because of the log messages from Tomcat, I do think that is doing its job so the problem is somewhere inside the

[AngularJS] Re: angular 2 heroes tutorial - using a server for data

2016-09-30 Thread norricorp
Hi Sander, I do not think it is a CORS issue because I did have CORS errors in the browser debugger console. These stopped when I added a grails plugin for the data server. Because of the log messages from Tomcat, I do think that is doing its job so the problem is somewhere inside the angular

[AngularJS] Re: angular 2 heroes tutorial - using a server for data

2016-09-30 Thread norricorp
Just to add, how can the URL be null when the there is a record in the tomcat log showing a 200 response to a request? > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an

[AngularJS] Re: angular 2 heroes tutorial - using a server for data

2016-10-06 Thread norricorp
Hi Sander, yes that did help, getting rid of the data part.. I think there was a problem with a change in angular so I upgraded. Unfortunately ng init is not working in the new version so was unable to upgrade the application but I recreated it from scratch and switching between in memory db

[AngularJS] deploying an angular 2 app

2016-09-15 Thread norricorp
Hi, new to angular. I was wondering how to deploy an angular app to a web server? Is there documentation on this. I have experience with Java and Tomcat applications but not sure how it works where all of the logic is in the front end. Regards, John -- You received this message because you are

[AngularJS] angular 2 tutorial - http

2016-09-15 Thread norricorp
Hi, going through the tutorial. If I wanted to use a real web server to supply data (rather than the InMemoryDataService), would all I have to do is change the heroesURL value to something like fred dot com? Regards, John -- You received this message because you are subscribed to the Google

[AngularJS] angular 2 heroes tutorial - using a server for data

2016-09-29 Thread norricorp
Hi, Using the Heroes tutorial on the Angular 2 website. I have set up the heroService to use a rest service from tomcat. Using curl produces the correct result C:\Temp\curl>curl http://centos7-ansible:8080/heroes/heroes [{"id":1,"name":"Mr.

[AngularJS] Re: angular 2 heroes tutorial - using a server for data

2016-09-30 Thread norricorp
I added the following console messages getHeroes(): Promise { return this.http.get(this.heroesUrl) .toPromise() .then(response => { console.log("service response text " + response.statusText); console.log("service response data " +

[AngularJS] Re: Heroes tutorial - added hero not displayed

2016-11-01 Thread norricorp
Hi Sander, the service code is create(name: string): Promise { return this.http .post(this.heroesUrl, JSON.stringify({name: name}), {headers: this. headers}) .toPromise() .then(res => res.json().data) .catch(this.handleError); } and you were right - it is the service code. I

[AngularJS] Heroes tutorial - added hero not displayed

2016-10-31 Thread norricorp
Hi, I have used the heroes tutorial and when using in memory this works. But if I get the data from an external source eg grails 3 rest api then adding a hero behaves differently. The hero is added to the database (I can see that via curl) but the listing of heroes has a place holder for the new

[AngularJS] heroes tutorial - console log

2016-12-13 Thread norricorp
Hi, I have been amending the heroes tutorial and come across something that I do not understand so hopefully some one can help. In HeroesComponent.ts is this snippet of code export class HeroesComponent implements OnInit { heroes: Hero[]; selectedHero: Hero; constructor(private router:

[AngularJS] relationships between domains - documentation?

2016-12-12 Thread norricorp
Hi, I have two domain types with a link between them. My data backend is Grails and I have set this up and tested it using curl. But I can't find any documentation on how to reflect this in the angular 2 client. Could someone point me in the direction of this? Regards, John -- You received

[AngularJS] Re: Permission denied to access property "rejection"

2016-12-04 Thread norricorp
I think this may have something to do with using console.log in the wrong place. But really not sure. > -- You received this message because you are subscribed to the Google Groups "Angular" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[AngularJS] Permission denied to access property "rejection"

2016-11-29 Thread norricorp
Hi, I started with the heroes tutorial and have changed the "add hero" code to a form. I do realise that from a controller perspective it would be far better to have this as a separate component and html. And that is fine. But when I run the current page (form plus a loop of ngFor), the form is

[AngularJS] Re: ng new -4048 error

2017-03-21 Thread norricorp
> > Just to add, if I create a new project, I get exactly the same problem. > Interestingly the command tries to rename files it has already created in > the new projects node_modules folder eg > npm ERR! Error: EPERM: operation not permitted, rename

[AngularJS] Re: unable to read rest server with angular 2

2017-03-24 Thread norricorp
Looking through the grails log, I see the following. The request from the browser is being picked up 24 Mar 2017;09:50:40.737 DEBUG org.apache.coyote.http11.Http11InputBuffer - Received [GET /heroes?max=15 HTTP/1.1^M Host: centos64:8080^M User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64;

[AngularJS] Re: unable to read rest server with angular 2

2017-03-24 Thread norricorp
Just to add, I have found this http://tomcat.10.x6.nabble.com/How-to-write-a-correct-HTTP-request-to-Tomcat-8-5-4-instance-td5054729.html in summary, it wonders if the correct end of line is being sent. I was running beta16 of angular2 and then upgraded to beta32 and now 1.rc4. And these problems

[AngularJS] Re: unable to read rest server with angular 2

2017-03-24 Thread norricorp
>From the error on the grails side (the API side), it appears to think the request header is incorrect. So is it possible that Angular is not sending the correct header? But I am confused that Grails accepts the request, does everything it should do like get data and then decides the request

[AngularJS] Re: unable to read rest server with angular 2

2017-03-26 Thread norricorp
Hi Zachary, but if authentication has been left in the server, would curl have worked? >> -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[AngularJS] unable to read rest server with angular 2

2017-03-23 Thread norricorp
Hi, I have a grails rest api server. This returns data when I use curl. I have used the angular 2 heroes application to display this data. This was working and then I added authentication and it stopped working. I have returned to the pre authentication set up and I still get the same errors. I

[AngularJS] Re: unable to read rest server with angular 2

2017-03-23 Thread norricorp
Hi Kyle, the curl command is C:\Temp\curl>curl http://centos64:8080/heroes [{"id":1,"city":"Metropolis","flight":true,"invulnerable":false,"name":"Mr. Nice","strength":false},{"id":2,"city":"Reading","flight":false,"invulnerable":false,"na etc etc etc And this is the original code from the

[AngularJS] Re: unable to read rest server with angular 2

2017-03-23 Thread norricorp
Hi Sander, I am not convinced that it is a CORS issue for a few reasons. I did have CORS issues to begin with and the message in the browser console always mentioned "CORS". Also Grails 3.x.x (I forget the exact version) has built in CORS. And looking at the grails logs, it is quite happily

[AngularJS] Re: unable to read rest server with angular 2

2017-03-23 Thread norricorp
Well Sander and Kyle, any ideas? I suspect this is something unique to me (ie have I done something dumb) but the problem I have is how to debug this. I can debug on the server side and see that data is being found (and in the past, if it is cors, then the data is not retrieved by the server,

[AngularJS] ng new -4048 error

2017-03-21 Thread norricorp
Hi, not sure what event has caused this but in the last few days my angular 2 installation on windows has gone badly wrong. As an example running ng new proj-name gives the following (only last lines shown) (node:7180) Warning: Possible EventEmitter memory leak detected. 11 error listeners

[AngularJS] Re: ng new -4048 error

2017-03-21 Thread norricorp
> > Hi Sander, > followed the instructions - uninstalled global, installed global latest, installed in existing project having removed node_modules and exactly the same result. At end of npm install --save-dev @angular/cli@latest, I got the same EPERM -4048 error. Same result if I run in

[AngularJS] users appdata/roaming/npm folder - safe to delete?

2017-03-22 Thread norricorp
Hi, I am unable to create a new project (ng new). It fails with permissions problems on the above folder. I have reinstalled / upgraded via the instructions in the wiki but same problem. Is it safe to delete this folder? Regards, John -- You received this message because you are subscribed to

[AngularJS] Re: ng new -4048 error

2017-03-22 Thread norricorp
> > EPERM: operation not permitted, rename > 'C:\Temp\angularjs_example\angular2\heroes2\node_modules\.staging\rxjs-67f86bc0' > > -> 'C:\Temp\angularjs_example\angular2\heroes2\node_modules\rxjs' > So I did this manually in file explorer - moved the rxjs-67f86bc0 folder into node_modules.

[AngularJS] Re: ng new -4048 error

2017-03-22 Thread norricorp
And now it works . > > >> -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group,

[AngularJS] Re: users appdata/roaming/npm folder - safe to delete?

2017-03-22 Thread norricorp
> > Thanks Sander. I actually I did try it earlier and reinstalled but still > same problem. I will update the original topic on this problem because > there is something you may know about. > John -- You received this message because you are subscribed to the Google Groups "Angular and