[AngularJS] Re: Toggle X-editable checkbox e-enabled e-disabled

2015-01-21 Thread srikanth
thanks a lot it works -- 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+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroup

[AngularJS] Data sharing between form and a template

2015-01-21 Thread Abhinav Shroff
Hi, I am new to Angular and having a challenge in developing the below requirement: I have form with one field which does a post on click of a button, to a java servlet and in return a get a json object with result set. Once the result is there, I need to load a template where I need to show th

[AngularJS] Re: Is this the correct way to use $http.get?

2015-01-21 Thread Sander Elias
Hi Steve, No, it is not. You don't need to load the partial, the ngRouter is taking care of that. Remove it from your controller, and it should work. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group a

[AngularJS] Re: Toggle X-editable checkbox e-enabled e-disabled

2015-01-21 Thread Sander Elias
hi Srikanth, try this: Regards Sander ​ -- 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+unsubscr...@googlegroups.com. To post to this group, send emai

[AngularJS] Re: Posting form data to an external service - handing the response, round peg, square hold.

2015-01-21 Thread Sander Elias
Hi Simon, As said in other answers you are running into a CORS issue, and this should be solved on the router itself. If that's not possible, you need a proxy indeed. I assume you have access to the server your app is hosted on? You can add the proxy function to that server, and be done with it

Re: [AngularJS] Re: insights on recurring controller/service/api relationship

2015-01-21 Thread Sander Elias
Hi Jonathan, I don't use $resource often. I do build my own versions of it (as you are on pathway to do the same!). Rolling my own has the upside that I have more control over how the communication with the server is done. In some cases, I don't even use $http, but web-sockets for example. Curr

[AngularJS] Toggle X-editable checkbox e-enabled e-disabled

2015-01-21 Thread srikanth
how can i toggle between enabling and disabling of checkbox using e-disabled and e-enabled based on scope e-disabled fiddle -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from

[AngularJS] Re: I use angular-cookies.js modify browser cookies,but i can not find the result in the browser

2015-01-21 Thread Justin Walsh
Hi, Not sure why you can't see the example - is your firewall blocking plnkr.co? Here's the code: *app.js* var app = angular.module('plunker', ['ngCookies']); app.controller('MainCtrl', function($scope, $cookies) { $scope.data = {}; // the name $scope.data.name = $cookies.myFavori

[AngularJS] Re: [angular.js] Re: File Uploads

2015-01-21 Thread Sundara Neupane
> > you can use easy to use upload file using angualar js like In Controller $scope.myCroppedImage = ''; $scope.UploadImage = function () { if ($scope.myCroppedImage != '') { $scope.UserProfileImage = $scope.myCroppedImage; } } var handleFileSelect = fu

Re: [AngularJS] Posting form data to an external service - handing the response, round peg, square hold.

2015-01-21 Thread Rob Koberg
I am pretty sure you are out of luck then. It needs a server side configuration (or code) or you would need to pass it through not-a-browser first (standard proxy). You are running into Cross Origin Resource Sharing (CORS) -- more info: http://enable-cors.org/ -- You received this message because

Re: [AngularJS] Re: insights on recurring controller/service/api relationship

2015-01-21 Thread Puritan Paul
I’ll definitely do some more reading. I’d started to dabble with resource, but I’ve had a little trouble understanding the right way to use it. Seems like the right track, though. Thanks. > On Jan 20, 2015, at 10:32 PM, Sander Elias wrote: > > Hi Jonathan, > > This is similar to what $res

[AngularJS] Re: Intent to Implement CommonJS Support

2015-01-21 Thread Paul Everitt
On Wednesday, January 21, 2015 at 7:52:11 AM UTC-5, Daniel Lidström wrote: > > Hi Adam > > May I ask what problems you are solving with RequireJS and putting each > file in its own Angular module? Even 170 source files could be bundled, > minimized, compressed, and loaded up front, don't you th

Re: [AngularJS] Posting form data to an external service - handing the response, round peg, square hold.

2015-01-21 Thread Simon Morley
By proxy, do you mean the standard proxy or is there something in Angular I don't know about? If the former, we can't - the pages are a captive portal for the routers and we have no access to the client. On Wednesday, 21 January 2015 19:21:15 UTC, Rob Koberg wrote: > > If you have no access to

[AngularJS] Re: ng-include passing parameters to templates

2015-01-21 Thread Luiz Rolim
clever solution Kranthi. thanks Em terça-feira, 2 de dezembro de 2014 06:18:23 UTC-7, Kranthi Kiran escreveu: > > adding an ng-if="'true'" inside the ng-include directive did the trick for > me. I guess ng-if creates a new scope for the containing element. > > In your case, the code would look

[AngularJS] Re: Intent to Implement CommonJS Support

2015-01-21 Thread Adam DiCarlo
> > May I ask what problems you are solving with RequireJS and putting each > file in its own Angular module? Even 170 source files could be bundled, > minimized, compressed, and loaded up front, don't you think? And why so > many modules? I'm just being curious. > Sure! We *are* bundling and

Re: [AngularJS] Posting form data to an external service - handing the response, round peg, square hold.

2015-01-21 Thread Rob Koberg
If you have no access to modify how the router responds, then you will need to proxy it. On Wed, Jan 21, 2015 at 11:17 AM, Simon Morley wrote: > I'm basically forced to fit a round peg into a square hole here. > > We need to post some form data from our AngularJS app to a router within our > netw

[AngularJS] Posting form data to an external service - handing the response, round peg, square hold.

2015-01-21 Thread Simon Morley
I'm basically forced to fit a round peg into a square hole here. We need to post some form data from our AngularJS app to a router within our network (to authorise a user via a splash page). We have no control over that router or the response it provides from the post. I've tested the response

[AngularJS] Re: Safari on iOS and OSX CORS Problem.

2015-01-21 Thread Rob Koberg
Spoke too soon. It is now working in my desktop with safari emulating the iOS8.1 user agent on the server, but not with a real ipad... -- 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

[AngularJS] Re: Safari on iOS and OSX CORS Problem.

2015-01-21 Thread Rob Koberg
GOT IT! This is very difficult to debug. Chrome on iOS8 works. My local Safari emulating the iOS8.1 user agent works locally, but not on the server. The iPad emulator that comes with XCode works on the server and locally. For the preflight OPTIONS request, I am seeing Safari send: Access-Contro

[AngularJS] Is this the correct way to use $http.get?

2015-01-21 Thread Steve Husting
I'm trying to get my partial to load. This is my present understanding of how to do it. I think the $http.get statement is the problem -- clicking on the link to load the partial only results in #/gallery_details being appended to the URL in the browser. var app = angular.module("app", ['ngRo

[AngularJS] Bootstrap modal dialog with angularJS

2015-01-21 Thread sajeetharan
I am using bootstrap modal in my Angular Application, it works fine. I need to make it draggable and resizeable, so i have defined a directive. The issue now is it getting applied to the content inside the modal window, hence the modal window becomes transparent. how can i assign the draggabl

[AngularJS] Weekend drive--Need Sr. Java Developer at Sunnyvale, CA/San Jose, CA

2015-01-21 Thread Bharath Kumar
Hello Professionals, This is *Bharath Kumar* from *KRG Technologies; *We are looking for an *Sr. Java Developer at Sunnyvale, CA/San Jose, CA t*he below mentioned job description. Kindly forward me your resume, rate and contact details for further process at *bhara...@krgtech.com *. I also r

[AngularJS] Re: input "max" validation fails for late bindings

2015-01-21 Thread Tash Chainar
The correct updated link http://jsfiddle.net/HB7LU/10276/ On Wednesday, January 21, 2015 at 9:52:14 PM UTC+6, Tash Chainar wrote: > > Hi all, > > Binding the input max attribute to controller datamodel, and then setting > this data model later results to fail that max validation. > > Please see h

[AngularJS] Re: Directive with $compile not working for $http response.

2015-01-21 Thread Sander Elias
Hi Dp, Have a look at $sce (especially $sce.trustAsHtml(data). Regards Sander ​ -- 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+unsubscr...@googlegroups

[AngularJS] input "max" validation fails for late bindings

2015-01-21 Thread Tash Chainar
Hi all, Binding the input max attribute to controller datamodel, and then setting this data model later results to fail that max validation. Please see http://jsfiddle.net/joshdmiller/HB7LU/. So how can I force the validation work correctly? Thanks. -- You received this message because you ar

[AngularJS] Login / Registration #angularJS

2015-01-21 Thread Tempest-Marie Norlin
Is it someone does have a simple registration and login code with angularJS? just with email and password nothing else. 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

[AngularJS] Directive with $compile not working for $http response.

2015-01-21 Thread dp
I am trying to do the below functionality which was using jQuery.load() This gets content using post/get method and loads into a html element content. As part of my conversion to angular... I tried to use directive. The html content returned from server has some angular expressions like {{show

[AngularJS] Re: where to put *.js file

2015-01-21 Thread Daniel Lidström
I'm writing an ASP.NET MVC + WebAPI website with AngularJS. I put the js files into wwwroot/app in my web project. On Tuesday, 20 January 2015 16:13:46 UTC+1, Ahmet Temiz wrote: > > Hello > > I am new to Angularjs. > > let me know what the proper place is to put ex. js. file. > > regards > -- Y

[AngularJS] Re: Intent to Implement CommonJS Support

2015-01-21 Thread Daniel Lidström
Hi Adam May I ask what problems you are solving with RequireJS and putting each file in its own Angular module? Even 170 source files could be bundled, minimized, compressed, and loaded up front, don't you think? And why so many modules? I'm just being curious. On Wednesday, 21 January 2015 01

[AngularJS] Re: Angularjs scope lost when creating highcharts click function

2015-01-21 Thread Sander Elias
Hi Ocajians, If you change scope variables inside an function that runs outside angulars scope, you need to `$scope.$apply()'. Hmm, that might sound a bit cryptic.. I'll ellaborate a bit. your function that adds the html is run from a click event on your highchart feature. That click is run outs

[AngularJS] Re: Angularjs scope lost when creating highcharts click function

2015-01-21 Thread Ocajian
Apologies I forgot to update the JSFiddle - http://jsfiddle.net/47m46/13/ On Wednesday, January 21, 2015 at 12:48:27 PM UTC+2, Ocajian wrote: > > Hi Sanders > > This is what I have come up with so far: JSFiddle > > > I see that $compile attaches the html template

[AngularJS] Re: Angularjs scope lost when creating highcharts click function

2015-01-21 Thread Ocajian
So I guess what I am asking is "How do I provide angular scope to my click function on load?" On Wednesday, January 21, 2015 at 12:48:27 PM UTC+2, Ocajian wrote: > > Hi Sanders > > This is what I have come up with so far: JSFiddle > > > I see that $compile attach

[AngularJS] Re: Angularjs scope lost when creating highcharts click function

2015-01-21 Thread Ocajian
Hi Sanders This is what I have come up with so far: JSFiddle I see that $compile attaches the html template I create to my scope. Am I correct in this? My ng-click function call does now run. However when I add for interest sake a variable to my comtroller - *

[AngularJS] Re: Angularjs scope lost when creating highcharts click function

2015-01-21 Thread Sander Elias
Hi Ocajian, Well, you should come back with your result nevertheless. if this is your first venture into $compile, I suspect you can use some extra coaching/pointers ;) Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscri

[AngularJS] Re: Angularjs scope lost when creating highcharts click function

2015-01-21 Thread Ocajian
Hi Sander Thanks for pointing me in the right direction! I think I might be able to take it from here but will come back to this thread if any issues arrise. Regards Ocajian On Wednesday, January 21, 2015 at 11:56:18 AM UTC+2, Sander Elias wrote: > > Hi Ocajian, > > If you add new raw html to y

[AngularJS] Re: Angularjs scope lost when creating highcharts click function

2015-01-21 Thread Sander Elias
Hi Ocajian, If you add new raw html to your page that contains angular directives, you should $compile that. Before or after inserting the part your contentDiv.innerHTML contains a angular directive (ngClick). However, angular is not aware of this template. Hence, the ngClick does not fire. A

[AngularJS] Angularjs scope lost when creating highcharts click function

2015-01-21 Thread Ocajian
Hi everyone! I have run into a scoping problem when creating click functions on the nodes of my graphs built using Angularjs, Highcharts and the highcharts-ng directive. The problem I am having is that any angular directives or functionality I place in my click function does not work. Here is

[AngularJS] Re: Safari on iOS and OSX CORS Problem.

2015-01-21 Thread Jörg Zimmer
Hi, we are currently running our app with a message to iOS8 Users... A temporary this is to use the same Domain for API and Website... But this is not acceptable in the final product. This seems like a bug to me. I also found this one: https://bugs.webkit.org/show_bug.cgi?id=135379 which links t