[AngularJS] move a maker for every 5 seconds in a map angular leaflet

2017-04-19 Thread Vishnu Bidarakundi
help me with this  question

http://stackoverflow.com/questions/43489138/move-a-maker-for-every-5-seconds-in-a-map-angular-leaflet


Regards
Vishnu B

-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Cache eviction of cacheDefault and cacheExpensive in $ParseProvider

2017-04-19 Thread Sander Elias
Hi Jasmeet,

Can you reproduce your leak in a plunker? that would help a lot to resolve 
it.
There are a few open (and a whole lot more closed) issues involving memory 
leaks 

 
in the angular repo. You might want to take a look at this.
Also, the Memory management in Angular applications 

 article 
might give you some new insights. And this article 
 takes 
another angle on it.

Regards
Sander

-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Angular docs - which generator?

2017-04-19 Thread Sander Elias
Hi João,

Currently, the angular docs site is being overhauled. After the overhaul, 
there will be a new system in place. Can't tell you the details yet, as 
there is still very active work being done there. As far as I know dgeni is 
still being used now, but I'm not too sure on the new situation.

Regards
Sander

-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Best Practice for REST API calls that take an extraordinarily long time?

2017-04-19 Thread Zlatko Đurić


On Wednesday, April 19, 2017 at 3:25:03 AM UTC+2, rob...@leapyear.io wrote:
>
> Imagine you have an Angular 2 app that makes calls to a REST API with 
> Observables.  Further imagine that the response time of these calls will 
> take many tens of minutes or even hours to return a response.
>
> In many cases your users will launch such calls to the REST API at the end 
> of their work day, close their laptop, and go home.  When they login in the 
> morning, they will be looking to be notified about the status of the calls 
> they initiated the previous day.
>
> Might you have any suggestions on how best to architect such a scenario?
>
>
As Sander has suggested, this sounds like a server-side solution. You don't 
say what technology you use on backend, but take a look at what kue does: 
https://github.com/Automattic/kue (it's a node.js/redis based module). 

Basically your server:
1. receives a request 
2. queues the job and saves some job identifier
3. returns that identifier to the client.
4. kicks off the job in background - or even better, lets something else 
handle the job processing part entirely and update the job id status.

So now your Angular client has to make a request and it receives back the 
job id - immediately, not after an hour. It can then store this job id 
(say, in local storage) - so even if the user closes their laptop and goes 
home, tomorrow the job id will still be there. Then when the page is 
restored (or reloaded or whatever) you can ask the server if your job is 
complete.

Now that's just a rough outline, many details depend on what you actually 
do, what you use to do it and other things.

-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] How login with linkedin can be done in angular2 ?

2017-04-19 Thread Soja C
Anybody have  idea about login with linkedin in angular2...?

-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] angular application getting an error from a tomcat application

2017-04-19 Thread Reza Razavipour
I have an angular 2 application that makes http get calls to a tomcat 
server (Java).
when I make the call, in the browser console, I see a long error ending with
Not sure what the cause is and what the solution might be.

Anyone dealt with this before?

*Sorry, JavaScript must be enabled in order for you to use this 
application.*


-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] How to subscribe to route parameters changes (both path and query)

2017-04-19 Thread Sergei Kasoverskij
Hi all,

I have 1 path parameter and 2 query parameters. 
In my component I want to do load data based on those parameters.

If I subscribe to this.route.params and this.route.queryParams than my 
"reload" will be executed twice.

Is here any way to listen to "route change event" if any parameter (query 
or path) changes?

Thank you in advance.

-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] cookies and sessionID

2017-04-19 Thread Reza Razavipour
my angular application is making an http request to a server that requires 
a cookie with a valid sessionID.
Without it the server returns an error...

currently, I just make an http.get(url) call. How do i get about passing a 
cookie with a sessionID variable with my request? 

-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] using multiple libraries in angular project

2017-04-19 Thread Saurabh Akshekar
im new to angular. have been looking in angular 4 docs and resources on 
https://angular.io/resources/
angular.io presents quite many interesting UI libraries viz. project 
clarity, ng-lighting, ng-bootstrap2...
is it possible or good idea to mix these components which seem to have more 
or less similar components and some components specific to the library
what are suggested best practices for angular 4 

-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: angular application getting an error from a tomcat application

2017-04-19 Thread khushi verma
Hi Reza,

Seems Javascript is disabled in your browser. follow below steps to enable 
JS in chrome browser.


   1. On the web browser menu click on the "Customize and control Google 
   Chrome" and select "Settings".
   2. In the "Settings" section click on the "Show advanced settings..."
   3. Under the the "Privacy" click on the "Content settings...".
   4. When the dialog window opens, look for the "JavaScript" section and 
   select "Allow all sites to run JavaScript (recommended)".
   5. Click on the "OK" button to close it.
   6. Close the "Settings" tab.
   7. Click on the "Reload this page" button of the web browser to refresh 
   the page.



Thanks,
Khushi

On Wednesday, April 19, 2017 at 10:03:06 PM UTC+5:30, Reza Razavipour wrote:
>
> I have an angular 2 application that makes http get calls to a tomcat 
> server (Java).
> when I make the call, in the browser console, I see a long error ending 
> with
> Not sure what the cause is and what the solution might be.
>
> Anyone dealt with this before?
>
> *Sorry, JavaScript must be enabled in order for you to use this 
> application.*
>
>
>

-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Trouble with simple REST call in angularjs

2017-04-19 Thread jimmyjamesknapp
Hi, I'm brand new to the group, and brand new to angular js...I've been 
tasked with coding something kind of outside my wheelhouse and I'm hoping 
someone out there might be able to throw me a rope. To start, I'm trying to 
create a simple html page that uses a single, simple angularjs controller 
to issue a REST call to a running application. Currently when I run it, the 
page loads, and it displays the header and the button, but when I click on 
it nothing happens.  The variable of 'data' ends up getting printed out 
literally as '{{ data }}', though I suspect this may be because the 
controlled function is never getting called - I can see from inside the 
REST interface that it is never receiving any request, so I think I've got 
something fundamentally wrong here. Can anyone steer me in the right 
direction? Thanks!

Here is the html page:

**
*  Keyword Libraries*
*  *
**
*  *
**
*  Get 
Keywords*
*  *
* {{ data }} *
*  *
**
*  *
**
*  *
**

And the controller looks like this:

*angular.controller('getKwDocs', function($scope, $http) {*

* // load the keywords*
* $scope.loadKwData = function() {*
* $http.get('/trm/kw_test').success(*
* function(data) {*
* $scope.kwData = data;*
* });*
* };*
*});*

-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: angular application getting an error from a tomcat application

2017-04-19 Thread Sander Elias
Hi Reza,

It looks like you are trying to load a page that's designed to be loaded in 
a browser/iframe directly. I highly doubt it has anything to do with 
angular. Look in the dev-tool network tab at what you are receiving.

Regards
Sander

-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: How to subscribe to route parameters changes (both path and query)

2017-04-19 Thread Sander Elias
Hi Sergei,

Merge those before subscribing to them. Look up the zip operator.

Regards
Sander

-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Trouble with simple REST call in angularjs

2017-04-19 Thread Andy Barrionuevo
I assume you declared ng-app="APP  NAME" some where at the top of your html?
And added angular.module('APP NAME', ['DEPENDENCIES, if any]') at the top 
of your js file?

On Wednesday, April 19, 2017 at 9:36:30 PM UTC-5, jimmyja...@gmail.com 
wrote:
>
> Hi, I'm brand new to the group, and brand new to angular js...I've been 
> tasked with coding something kind of outside my wheelhouse and I'm hoping 
> someone out there might be able to throw me a rope. To start, I'm trying to 
> create a simple html page that uses a single, simple angularjs controller 
> to issue a REST call to a running application. Currently when I run it, the 
> page loads, and it displays the header and the button, but when I click on 
> it nothing happens.  The variable of 'data' ends up getting printed out 
> literally as '{{ data }}', though I suspect this may be because the 
> controlled function is never getting called - I can see from inside the 
> REST interface that it is never receiving any request, so I think I've got 
> something fundamentally wrong here. Can anyone steer me in the right 
> direction? Thanks!
>
> Here is the html page:
>
> **
> *  Keyword Libraries*
> *  *
> **
> *  *
> **
> *  Get 
> Keywords*
> *  *
> * {{ data }} *
> *  *
> **
> *  *
> **
> *  *
> **
>
> And the controller looks like this:
>
> *angular.controller('getKwDocs', function($scope, $http) {*
>
> * // load the keywords*
> * $scope.loadKwData = function() {*
> * $http.get('/trm/kw_test').success(*
> * function(data) {*
> * $scope.kwData = data;*
> * });*
> * };*
> *});*
>

-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: using multiple libraries in angular project

2017-04-19 Thread Sander Elias
Hi Saurabh,

It is technically possible to mix components from different UI libraries. 
Usually, it really is a bad idea.Why you may ask?
Well:

   - every lib has it own CSS, loading 2(or more) full CSS 'frameworks' has 
   high costs
   - every lib has it own core-lib, Loading multiple will bloat your runtime
   - unaligned styling issues, causing a visual jerk
   - resulting app might feel 'cut&pasted` due to inconsistencies in UX 
   between parts. 

There might be libs out there that take modularity to their core, and 
enable you to just load a single component, without (much) global overhead, 
but I have not seen those yet.
I know some of them aspire this, and once that's a fact, you can mix and 
match components. Well, aside from the relevant point above ;)

Regards
Sander

-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Trouble with simple REST call in angularjs

2017-04-19 Thread jimmyjamesknapp
It's there, though I wonder if the syntax might be incorrect...I've  been 
tinkering since my post, so I've posted the most current code below - in 
the HTML I set the app and module here:


  
  Robot Keyword Libraries
  

  

  Get 
Keywords
  
 {{ data }} 
  

  

  


Then in the js, I set the app and controller like this:

angular.module('trmApp').angular.controller('getKwDocs', function($scope, 
$http) {

// load the keywords
$scope.loadKwData = function() {
console.log('loadKwData function called')
$http.get('/trm/kw_test').success(
function(response) {
$scope.kwData = response.data;
})
.error(console.error('Failed'))
};
});


On Wednesday, April 19, 2017 at 11:40:41 PM UTC-4, Andy Barrionuevo wrote:
>
> I assume you declared ng-app="APP  NAME" some where at the top of your 
> html?
> And added angular.module('APP NAME', ['DEPENDENCIES, if any]') at the top 
> of your js file?
>
> On Wednesday, April 19, 2017 at 9:36:30 PM UTC-5, jimmyja...@gmail.com 
> wrote:
>>
>> Hi, I'm brand new to the group, and brand new to angular js...I've been 
>> tasked with coding something kind of outside my wheelhouse and I'm hoping 
>> someone out there might be able to throw me a rope. To start, I'm trying to 
>> create a simple html page that uses a single, simple angularjs controller 
>> to issue a REST call to a running application. Currently when I run it, the 
>> page loads, and it displays the header and the button, but when I click on 
>> it nothing happens.  The variable of 'data' ends up getting printed out 
>> literally as '{{ data }}', though I suspect this may be because the 
>> controlled function is never getting called - I can see from inside the 
>> REST interface that it is never receiving any request, so I think I've got 
>> something fundamentally wrong here. Can anyone steer me in the right 
>> direction? Thanks!
>>
>> Here is the html page:
>>
>> **
>> *  Keyword Libraries*
>> *  *
>> **
>> *  *
>> **
>> *  Get 
>> Keywords*
>> *  *
>> * {{ data }} *
>> *  *
>> **
>> *  *
>> **
>> *  *
>> **
>>
>> And the controller looks like this:
>>
>> *angular.controller('getKwDocs', function($scope, $http) {*
>>
>> * // load the keywords*
>> * $scope.loadKwData = function() {*
>> * $http.get('/trm/kw_test').success(*
>> * function(data) {*
>> * $scope.kwData = data;*
>> * });*
>> * };*
>> *});*
>>
>

-- 
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, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.