[AngularJS] Re: Wait for an http call to finish in a second event

2016-08-03 Thread Sander Elias
Hi Austin..., there are a couple of way's you can solve this. I don't know what's the 'best' way in your situation. I usually just keep a reference the promise itself. On change of data replace the promise with a new one, and reuse the same promise on submit. Regards Sander -- You

Re: [AngularJS] Re: ng2: iterate over object and display its keys...

2016-08-03 Thread Sander Elias
Hi, It's a need to know that you have to import your operators. That's a bit of a PITA, until you find that ;) 1. Yes, I took the quick-start sample, from angualr.io and worked from that. While learning, don't spend too much time on figuring out stuff you need to build. angular-cli will take

[AngularJS] Re: SPA thats not really SPA?

2016-08-03 Thread Sander Elias
Hi Dave, I have to break it to you, there is no sliver bullet. An app doesn't need to be a SPA to qualify as an app. In some situations, it makes sense to break up certain parts of an application into a separate 'sub-app' (a new entry-point, that can work on its own.) However that sounds like

[AngularJS] Wait for an http call to finish in a second event

2016-08-03 Thread austinbo2012
I have form with a submit method. Inside the form there is an input tag with a blur event handler. User types in some text into the input to look up item and clicks button to submit form. Below is some pseudocode: MethodToGetData { call http to get data and setup model objects } Blur Event

Re: [AngularJS] Re: ng2: iterate over object and display its keys...

2016-08-03 Thread p. stephen w
Very cool. Thanks for taking the time to fix it. I see you import 'rxjs' to clear the 'map undefined' error. That was really causing me some grief. 1. Was the systemjs.config auto populated? It looks daunting to scribble out myself. 2. Extra points for using a recursive component. 3. The

[AngularJS] SPA thats not really SPA?

2016-08-03 Thread Dave Abbott
I am trying to wrap my head around this SPA concept. All the examples seem to be the gold standard ToDo list, makes sense its all done on a single page. But any real world application will have much more and yet not a single tutorial or guide or example explains how to create a real

[AngularJS] deploying to production

2016-08-03 Thread Tito
Greetings all I have create a small little app we use internally for keeping track of manufacturing. It gets its data from microsoft sql server using express.js. As bootstrapping the app I used John Papa's gulp-patterns-demo from git. All is well on dev side but when I deployed this app to

[AngularJS] Linkeddin Exchange Authorization Code for an Access Token using AngularJS

2016-08-03 Thread Polokh Andrey
I am using AngularJS 1.5.8 and trying to implement Linkedin API. Linkedin authorization has two steps: *1. Request an Authorization Code* GET https://www.linkedin.com/oauth/v2/authorization I successfully passed this step and received authorization code *2. Exchange Authorization Code for an

[AngularJS] Error "Expression has changed after it was checked" with using FormBuilder

2016-08-03 Thread flrob
Below, i have made a Plunker for my example : http://plnkr.co/8fVExZ I can't reproduce my problem on Plunker. My problem is that I initialize my form with my company entity : createFormBuilder(company: Company) { this.companyForm = this.formBuilder.group({ 'country': [company.country,