[AngularJS] Angular js with jqxgrid

2014-12-29 Thread sayani sur
I have created a grid with jqxgrid and I am fetching the columns from service. $scope.gridSettings = { width: 1000, source: dataAdapter, filterable: true, ready: function () { addfilter(); },

[AngularJS] How to get ajax results

2014-12-29 Thread Sasikumar Veeraiah
Hi all, How to store ajax result into one scope variable ? I need to use that result inside my controller. Eg: $http({ url: '/app/demo/sample?a=getSamplesBySearchText', method: 'GET', params: { searchText : searchText } }).then(function (result) {

Re: [AngularJS] How to get ajax results

2014-12-29 Thread Cornelius Kölbel
Hi, I have a controller, that performs an Ajax request with JWT authentication to a REST service: angular.module(privacyideaApp) .controller(tokenController, function ($scope, $http, $location, tokenUrl, user) { $scope.user = user.getUser(); $scope.getTokens = function ()

[AngularJS] npm WARN optional dep failed, continuing fsevents@0.3.1

2014-12-29 Thread Mohan Radhakrishnan
Hello, This does not stop karma from working on my Win 7 32-bit. Wondering what it means here because on my Mac 'node-gyp' actually built after I updated my XCode for Mavericks. I mean that on the Mac I saw the same error initially but after my XCode update 'node-gyp' was

Re: [AngularJS] How to get ajax results

2014-12-29 Thread Sasikumar Veeraiah
Hi Cornelius, Whenever i call this method ($scope.getTokens()) which will made a ajax call again right? But i don't want to make ajax call more than once. I need to call it once and i have to store the results into some variable. so, i can use those results whenever i need. Thanks Regards,

Re: [AngularJS] How to get ajax results

2014-12-29 Thread Cornelius Kölbel
Hi Sasikumar, you do not need to call the method, if you do not want to. getTokens() is called within the controller, so it is called the first time the view with the controller is displayed. The result is stored in the scope. I just wrote it as a method, so that you _could_ call it again later.

Re: [AngularJS] How to get ajax results

2014-12-29 Thread Sasikumar Veeraiah
yes, i got it. Thank you Cornelius. Thanks Regards, Sasikumar.V On Mon, Dec 29, 2014 at 3:59 PM, Cornelius Kölbel cornelius.koel...@netknights.it wrote: Hi Sasikumar, you do not need to call the method, if you do not want to. getTokens() is called within the controller, so it is

[AngularJS] Re: Date Validation using Angularjs.

2014-12-29 Thread santosh keswani
assign ng-model of product purchase date to product warranty date eg: input type=text ng-model=purchaseDate input type=text ng-bind=purchaseDate hope fully this will help you -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this

[AngularJS] Simple domain model

2014-12-29 Thread Mohan Radhakrishnan
Hi, I would like to use Resig's method to use OO like this. var User = Class.extend({ init: function(firstName,lastName){ this.firstName = firstName; this.lastName = lastName; }, getFirstName: function(){ return this.firstName; }, getLastName:

Re: [AngularJS] Angular js with jqxgrid

2014-12-29 Thread Gary Haddon
Sayani, Check out the following website http://www.jqwidgets.com/. The Community tab and then forums should be able to help you. Gary On Mon, Dec 29, 2014 at 1:44 AM, sayani sur sayanisu...@gmail.com wrote: I have created a grid with jqxgrid and I am fetching the columns from service.

[AngularJS] How to pass Factory to Controller through $routeProvider.when {} statement

2014-12-29 Thread Raj
Hi Experts I am using .config(function($routeProvider, $locationProvider) { } I am passing the templateUrl: 'chapter.html', controller: 'ChapterController' but i do not know how to pass factory on which ChapterController is dependent. I know through resolve attribute, i can pass

[AngularJS] Re: Angular + Mongoose + Node: keine DB-Einträge

2014-12-29 Thread tomw
Thomas, first, it would be helpful to post in English to maximise the chance to get a response. Second, and even more important you are unlikely to get a response if you are not providing any idea on the client code. Just posting the server side code does not help. The server side as such

[AngularJS] Re: Simple domain model

2014-12-29 Thread André Werlang
If Class is contained inside a library file (.js), make sure that file is referenced in main .html. If running test on karma, make sure that .js is included in karma.conf Em segunda-feira, 29 de dezembro de 2014 11h53min12s UTC-2, Mohan Radhakrishnan escreveu: Hi, I would

[AngularJS] Re: Angular + Mongoose + Node: keine DB-Einträge

2014-12-29 Thread Martin Alix
Have you tried ArticleCategory.find({}, function (err... On Sunday, 28 December 2014 06:58:08 UTC-5, Thomas Handle wrote: Hallo zusammen, dies ist mein erster Eintrag hier. Habe gerade begonnen, mich in die oben genannten Themen einzuarbeiten und brauche eure Unterstützung. Ich habe ein

[AngularJS] Is it possible we Can set $interval and $timeout time dynamically

2014-12-29 Thread Sandeep Jsk
var sampleApp = angular.module('myApp',[]); sampleApp.controller('sanController',[ '$interval','$timeout',function($interval,$timeout){ $scope.time=5000; var ff=function(){ $scope.time=1; }; $timeout(ff,$scope.time); $interval(function(){ console.log(Update time is:+$scope.time);