[AngularJS] HTML5 mode with Phonegap

2014-04-24 Thread Sergio Rinaudo
Hi Everyone, I'm trying to make html5 mode (true) works with Phonegap. I did a lot of search before to post this, I tried different combination of configurations, adding the tag in meta ( also tried with , and ), adding the .html suffix to route endpoints,adding the $delegate.history = false

[AngularJS] Re: HTML5 mode with Phonegap

2014-04-24 Thread Sergio Rinaudo
I've also found that place "android_asset" value for base will make correctly load the main controller but then breaks routing Tested with target attribute "_blank" and "_self" values... Any advice would be appreiated Il giorno giovedì 24 aprile 201

[AngularJS] Using $watch within loop

2014-11-27 Thread Sergio Rinaudo
Hi everyone, I'm trying to use the scope.$watch function *within a loop* and I cannot make it work as expected. The code is something like this for(var i in control.children) { scope.$watch( control.children[i].propertyId, function(newValue, oldValue) { if ( newValue !==

[AngularJS] Re: Using $watch within loop

2014-11-27 Thread Sergio Rinaudo
still curious to know if it is possible to use $watch in a loop and how. Cheers Il giorno giovedì 27 novembre 2014 14:33:32 UTC+1, Sergio Rinaudo ha scritto: > Hi everyone, > I'm trying to use the scope.$watch function *within a loop* and I cannot > make it work as expected

[AngularJS] Tests for app "run" block

2013-12-22 Thread Sergio Rinaudo
Hi all, I have some logic in the run block of my app *file app.js* app.config( // routes etc.. )..run( // logic here ); this logic have to run only once when the user enters the app, for example an async request to get the user session data. I would like to set up tests for this bloc

Re: [AngularJS] Tests for app "run" block

2013-12-23 Thread Sergio Rinaudo
lling the Init service. > > > On Sun, Dec 22, 2013 at 5:27 PM, Sergio Rinaudo > wrote: > >> Hi all, >> I have some logic in the run block of my app >> >> *file app.js* >> app.config( >> // routes etc.. >> )..run( >> // logic he

Re: [AngularJS] Tests for app "run" block

2013-12-24 Thread Sergio Rinaudo
erX' >}, {'A-Token': 'xxx'}); > 2. > > > > > > > > > On Mon, Dec 23, 2013 at 3:56 PM, Sergio Rinaudo > wrote: > >> Could you provide a simple example? >> >> Currently, I have something like this >> >> - A LoggedInL