jisha sasidharan | 15 Jul 05:50 2015
Picon

Can we have connection timeout in Angular js using the ready state?

In my application, I need to distinguish between connection timeout and status timeout.
Presently in angular the $http cal waits till the status timeout value (e.g 45sec) even though the server connection is not established, which can be identified within (1-2 sec). I need to abort the http call once connection timeout has happened.

In ajax we can do this but checking the xhr.ready state. Refer:
http://www.w3schools.com/ajax/ajax_xmlhttprequest_onreadystatechange.asp


--
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 email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
Ricardo Gonzales | 14 Jul 22:23 2015
Picon

Re: code obfuscation breaks dependency injection in AngularJS 0.10.5

What did you use to obfuscate angular projects? I'm searching over the 
internet and everything is about minification and "do not obfuscate your 
code" :( Hope you can help me.

Jason K | 14 Jul 21:31 2015
Picon

What is required to see a form in Angular within $scope?

I have hit a documentation gap in 1.4.3 Angular with respect to accessing the form from within the scope. Numerous examples indicate that the following should work:

$scope.someForm.$setPristine;

However, my $scope does not contain the someForm when accessed within controller code. I can access someForm directly, but it has none of the controller methods or values indicating that it is a different object. My controller is declared as so:

angular.module('provisioning', ['ui.bootstrap']).controller('ProvisioningController', ['$scope', '$http', function($scope, $http)

and the form html is as follows:

<form name="someForm" class="form-horizontal" style="padding-top:15px" "novalidate  ng-submit="submitForm()">

Any ideas would be appreciated as google is turning up nothing useful.

--
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 email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
André Rafael Mezzalira | 14 Jul 20:40 2015
Picon

menu not working when in partials

http://codepen.io/anon/pen/mJKpWy

--
Abraços ...

--

André Rafael Mezzalira

SCJP/SCWCD/SCJA

"Do you still uses a database?"

--
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 email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
Dallan Quass | 14 Jul 17:36 2015
Picon

Best way to animate panning and zooming a fractal?

I'm displaying a bunch of dom elements arranged as a fractal, so some elements are initially scaled much smaller than others, and as the user drags the mouse, I want to capture the mousemove events and update the elements' translate and scale css transforms. For performance I'm thinking I need to make the updates inside a requestAnimationFrame callback.

What's the best way to do this? Should I call $animateCss on every mousemove, or would I be better off updating the translate and scale transforms inside my own requestAnimationFrame callback? I worry that setting up an animation on every mousemove using $animateCss would be overkill and would result in worse performance than setting the translate and scale transforms directly inside requestAnimationFrame.

--
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 email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
Stanislav Ustimenko | 14 Jul 16:45 2015

Re: what editors/IDEs are you guys using

Codelobster works very good for me.
It has special AngularJS plug-in: http://www.codelobster.com/angularjs.html

On Wednesday, December 19, 2012 at 11:15:43 PM UTC+4, Jason Berk wrote:
I'm still using eclipse and the more I do javascript coding, the more I want to hurt myself.  I seriously considering a jump to IntelliJ.  Can anybody give me some advice on what editor/IDE they are using and why I should or shouldn't consider a move to IntelliJ?

just for some background, my "project" is a suite of internal tools to by used by our employees on the intranet.  I'm using eclipse and creating a single WAR.  all the HTML/JS is under Web Content while all the services being used are served by Jersey under the src folder.  This allows for one "applications.war" that is very self contained.  Now that I have my "site" content (http interceptor, authentication, styles, etc) set up, new apps are just a controllers file and the associated services (generally under a single package in src)

thus far I'm very happy with this layout, but JS (and even html) editing in eclipse (indigo) seem very cumbersome and out of date for the web 2.0 world I'm living in currently.

Jason

--
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 email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
vikrant mahajan | 14 Jul 11:23 2015
Picon

order of execution of all directives

Can we control the order of directives execution
Not on the same node or dom element but overall page level directives.

like if we have like 10 directives on page different and we can control which are evaluated first and so on

--
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 email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
nideesh manian | 14 Jul 08:58 2015
Picon

help needed with angular grid after selection change event

I have a controller and a service. In the view i have a grid and a panel with textboxes. On selection of a row from grid, the panel needs to be populated with selected values. Earlier my full code was inside controller hence it was working. Now i split them into controller and service, I do not know how to proceed further.

Below is my approximate code, i removed unwanted lines and extra fields for simplicity. I am getting error on selection change saying "vm is not available". Am i doing correctly, should the gridoptions be always inside controller function?

My view
<div class="col-xs-12" tabindex=" 0" ng-grid="vm.gridOptions" ></div>
<input ng-model="vm.item.name">
<input ng-model="vm.item.age">
My controller
function SalesController($scope, SalesService)
{
        var vm = this;
        vm.gridOptions = SalesService.gridoptions();
        vm.item={name:'',age:''}
}
My service
function SalesService(HTTPService, config, SignalRService) {
        var service = {
            gridoptions: GridOptions
        };
        var a = {
            data: 'vm.basket.Items',
            enableCellSelection: false,
            enableRowSelection: true,
            multiSelect: false,
            enableCellEdit: false,
            jqueryUITheme: true,
            selectedItems: [],
            columnDefs:
            [
                { field: 'Item.Name', displayName: 'Name', visible: true },
                { field: 'Item.Age', displayName: 'Age', visible: true }
            
            ],
            afterSelectionChange: function (rowItem, event) {
                console.log(rowItem.rowIndex)
                vm.item = this.entity.item
            }
        };
        return service;
        function GridOptions()
        {
            return a;
        }
}



--
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 email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
James Ramsfield | 14 Jul 07:13 2015
Picon

what are you guys using as module loader for your angularjs structure?

Hi

I was wondering what your guys are using as module loaders for your angularjs structure. I can't figure out what I should use and is currently recommended. So if your guys could give some good point on what you are using and how (maybe a link to external documentation would be great)

--
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 email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
michelle colin | 14 Jul 05:52 2015
Picon

Angular JS adding a service to controller is not working

I had this:

.controller('dashboardCtrl', function($scope, $timeout, $location, bionicoService, bionicoSamples, $state, $locale){

And everything worked fine, i could call my services for example bionicoSamples without a problem But i had to add a module for i18n and it requires this

.controller('dashboardCtrl', ['jlgI18nService', function( i18nService){

So when i added it to my code, my services stoped working, and i have no idea why, i'm king of new in angular and there is some conceptual stuff i don't understand well yet, for instance i really don't understand the difference betweem using "['module', function()" to "function('module')"

My code after trying to add the module is lilke this:

.controller('dashboardCtrl', ['jlgI18nService', function($scope, $timeout, $location, bionicoService, bionicoSamples, $state, $locale, i18nService){

I've also tried this, but is not working too

.controller('dashboardCtrl', ['jlgI18nService', '$scope', '$timeout', '$location', 'bionicoService', '$state', '$locale', function($scope, $timeout, $location, bionicoService, bionicoSamples, $state, $locale, i18nService){

The error i'm getting is that my services are undefined, if i try to call bionicoSamples.function, it says that this ""function"" is not a function. I know the problem is in the way i'm importing the services and modules now with this i18n module, because before it was working fine

Thanks!

--
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 email to angular+unsubscribe <at> googlegroups.com.
To post to this group, send email to angular <at> googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
季虎 | 14 Jul 05:41 2015
Picon

How to change module method outside angularJS

I'm developing an extension for browsers, hacking an web app which is developed with angularJS.

There is a module looks like:

  angular.module('Services').factory('testFactory', [ ..., function(...) {
    return {
      testFunc: function(){}
    }
  }]);

  Now I can inject a js script into the web app,  and want to overwrite the testFunc, so I tried in my script:
 
  var injector = angular.injector(['ng', 'Services']);
  var testFactory = injector.get('testFactory');
  var f = testFactory.testFunc;
  testFactory.testFunc = function() {
     f();
     // my own code for extra work
   };

   When calling testFunc in the web app, it seems still invoke the origin testFunc.

   What is wrong?  Can anyone help me? Thanks a lot in advance.

  BRs

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

Gmane