[AngularJS] Angular-kendoui and the compiler

2014-01-29 Thread Yonatan Kra
Hi, I'm new to angular, and I'm looking for a way to integrate it with kendoui. I'm using the angular-kendo.js which works nicely for simple cases, but I would like more advanced templating (e.g. use angular directives). Here's my piece of code http://plnkr.co/edit/xvdxaIpF2EtSQ7EPH87r In this

Re: [AngularJS] AngularJs causing infinite loop when there is a promise insite an filter.

2014-01-29 Thread Ismael Kafeltz
I know I answered my own question. But see this like a bug-report. =D -- 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

[AngularJS] route becomes empty

2014-01-29 Thread Rolf Strijdhorst
Hi all I have an issue with routes. on my page I have an initial visable list with links. when I click on a link two need to happen: 1. another list needs to be updated (with a different controller) this happens by using a listener to a broadcasted event. 2. an ng-view gets updated by

Re: [AngularJS] Re: directive not accessing elements generated by ng-repeat

2014-01-29 Thread Sander Elias
Hi Jake, Hmm, that's not really where events are intended for. What is it you are trying to accomplish? There are many way's to resolve this issue. Given your need, there will sure be one the fit's nicely. Can you put up a plunk of what you are trying to do, or what you have now. I will take a

[AngularJS] Re: Data Driven Form Validation

2014-01-29 Thread Sander Elias
Hi Matt, If you add attributes to an node, you need to recompile that node. Have a look at my superTable sample http://goo.gl/UDw0cM plunk, it does something similar, that you can adapt to your need. The directive seStRepeatInto uses this construct. Regards Sander -- You received this

[AngularJS] Re: getting the $error with validation of a dynamic form elements

2014-01-29 Thread Matjaž Lipuš
you can have dynamic field name. but you must create an directive with controller, that sets name attribute. you can read more about it here. https://groups.google.com/forum/#!topic/angular/YFVb5d54dY0 On Thursday, November 1, 2012 9:08:25 PM UTC+1, jason@gmail.com wrote: i have a form

[AngularJS] Re: How to have an input field with dynamic name fully working (validating, etc)?

2014-01-29 Thread Matjaž Lipuš
you can have dynamic field name. but you must create a directive with controller, that sets name attribute. you can read more about it here: https://groups.google.com/forum/#!topic/angular/YFVb5d54dY0 On Thursday, August 2, 2012 12:27:19 AM UTC+2, Flavio Silva wrote: Hi, I'm working with

[AngularJS] Re: handling 302 redirect with $xhr

2014-01-29 Thread Sander Elias
Hi Michael, You can't handle status 302 with javascript! Even angularJS can change anything about that. However, I guess there is a moment in your app that sends off the user to the authentication server? Before sending them of, store the current user status in localStorage. When the redirect

[AngularJS] Re: handling 302 redirect with $xhr

2014-01-29 Thread Michael Hunziker
Hi Sander! Only the proxy knows whether the user is still logged in or not. So as soon as he tries to do a REST call out of the application, and for some reason he is not logged in anymore (maybe he logged out in another browser tab), the proxy would return a 302 redirect... This is where i'm

[AngularJS] Re: handling 302 redirect with $xhr

2014-01-29 Thread Sander Elias
Hi Michael, That makes it only a bit more work. On every ajax call, save your state, when the 302 is resolved, reload the state, and resume with your job. It's a bit of a PITA, but it can be done. Regards Sander -- You received this message because you are subscribed to the Google Groups

Re: [AngularJS] Re: handling 302 redirect with $xhr

2014-01-29 Thread Michael Hunziker
Hi Sander! But how can I resolve a 302? All I get back after the AJAX call is a response with status code 0... Here's again what happens exactly: 1. User logs in to our app via SSO proxy. 2. User logs out in another application via SSO proxy, but our app is still open in another browser window.

Re: [AngularJS] Re: handling 302 redirect with $xhr

2014-01-29 Thread Michael Hunziker
What I could do is implement an httpInterceptor which will handle response errors with status code 0. As soon as I get such a response I could trigger a $window.location.reload. This would again trigger the proxy and he would redirect us to the login page. On Wed, Jan 29, 2014 at 3:22 PM,

[AngularJS] Re: What are the 'chore' commits?

2014-01-29 Thread aditya menon
I later noticed this in CONTRIBUTING.mdhttps://github.com/angular/angular.js/blob/master/CONTRIBUTING.md : Type Must be one of the following: - *feat*: A new feature - *fix*: A bug fix - *docs*: Documentation only changes - *style*: Changes that do not affect the meaning of the code

[AngularJS] Re: Placeholder text using ngModelController?

2014-01-29 Thread Simon Bernard
I did it like this: In the css: [placeholder-text]:not(:focus):empty:before { content: attr(placeholder-text); float: left; margin-left: 2px; color: rgba(200,200,200,1); } the element looks like this: div contenteditable=true placeholder-text=Description/div it works fine!

[AngularJS] Directive + do I need to $compile?

2014-01-29 Thread Stian Pedersen
I'm in need of some pointers in my landingPage-builder project. (i'm currently stuck!). The main issue is as follows: Each element in the template (like the h1 and the paragraph) has attached a directive. What I need to get the directive to do is: create a template of HTML with some other

[AngularJS] Re: $watchCollection: oldCollection always .equals(); never === to newCollection - a bug?

2014-01-29 Thread Nikita Tovstoles
fwiw I went ahead and filed issue #6041https://github.com/angular/angular.js/issues/6041 . On Monday, January 27, 2014 10:01:47 AM UTC-8, Nikita Tovstoles wrote: Would like a 2nd pair of eyes from the community before filing a bug: please see demo

[AngularJS] services with scope global singleton?

2014-01-29 Thread Nikita Tovstoles
Several sources suggest that using services as the optimal way of sharing data between several directives and or controllers. what if a use case calls for data to be shared only with specific instances of, say directives. In Spring (Java) for example, one would employ a bean with singleton

[AngularJS] Re: why doesn't Angular throw exception for un-assigned isolate scope properties?

2014-01-29 Thread Nikita Tovstoles
bump. could someone please have a quick look and lmk if this is a bug or I need to go back and re-read the docs. don't want to pollute the bug tracker if latter. thank you, -nikita On Saturday, January 25, 2014 12:17:32 PM UTC-8, Nikita Tovstoles wrote: please see demo

[AngularJS] Re: is the route provider's resolve working as intended?

2014-01-29 Thread 3soul
Yes, i'd like to know that too. In my case it's especially frustrating to use resolve resources with authentication on routes. I don't want to redirect to other pages (e. g. error pages) after $routeChangeError event. Am Freitag, 15. März 2013 11:07:33 UTC+1 schrieb faqin...@gmail.com:

[AngularJS] How to send and receive events when using controller as syntax

2014-01-29 Thread tomw
Hi I'm using the controller as syntax as it is pretty straight forward using classes in coffeescript. However, so far I could not figure out how to get to $scope to construct $scope.$emit and the respective $scope.$on for event emitters and event listeners. I'm creating my controllers like

[AngularJS] compiled AngularJS html validation tool

2014-01-29 Thread Oak Nguyen
Hey guys, I've been searching for a tool that does this since forever. I posted on stack overflow this question as well if you want to answer there http://stackoverflow.com/questions/21439243/compiled-angularjs-html-validation-tool . Basically I'm looking for a tool in visual studios that

[AngularJS] [[object HTMLUlistElement]] after compile is outputed

2014-01-29 Thread Yonatan Kra
Hi, I have this code inside my directive list-directive: return function(scope){ var html_markup = 'ulli ng-repeat=item in itemsng-include src=item.contentUrl/ng-include/li/ul'; elm.html($compile(html_markup)(scope); } in my controller I have: $scope.items = [ {contentUrl: myDomain.com},

[AngularJS] Protractor Selenium IDE And Easy e2e Tests

2014-01-29 Thread Owen M
Wondering what people are doing to make e2e writing easier/faster/... ? What is your workflow to create e2e tests with Protractor? Was looking at Selenium IDE where you can record a series of actions. Seemed promising for really easy e2e testing. 1. Load your app in Firefox with Selenium

[AngularJS] Re: on click help

2014-01-29 Thread Philip
Sander Thanks for the reply - I'm still working my way through the tuts tutorials. Changed the controller but still struggling as to my html page - what goes next to the ng-click Regards html ng-app=myApp ng-controller=MyCtrl3 head script src=

Re: [AngularJS] AngularJs causing infinite loop when there is a promise insite an filter.

2014-01-29 Thread Owen M
filters are run a LOT. Every time the scope changes, it fires digest cycles which calls the appropriate filters, often multiple times. Filters should always return the same output for a given input. In your case firing off http requests is causing all kinds of changes. Putting anything beyond

[AngularJS] Why does my controllers' scope get cleared after route update?

2014-01-29 Thread Rolf Strijdhorst
I am clicking on a ng-href link that is created using an ng-repeat it has its route defined as /api/:apiId. when I click on this link I do get the routeParam of apiId back. how ever every other link clicked not in the first controller cannot access the routeparameters this is even so when I

[AngularJS] Re: $http(..).error statuscode 404 when server down instead of code 0 after upgrading to angular 1.2.10 (from 1.2.2)

2014-01-29 Thread Chuck Fillet
I am also experiencing this problem. My angular verison is 1.2.9. I have put my client in airplane mode and it returns a 404 as a result of a rest call using $http. Chuck On Wednesday, January 29, 2014 7:00:42 AM UTC-6, Geir Gullestad Pettersen wrote: I'm using AngularJS for a singlepage

[AngularJS] Grunt, Angular, Compass, Chrome Dev Tools Sourcemaps

2014-01-29 Thread P Stockton
Hope that someone can point me in the right direction, accept that this may not be the right group for this but... I have a workflow set-up with source maps in angular with comapss and sass, so I know that i have the right versions of comapss and sass running. When I try to get it working

[AngularJS] Re: [[object HTMLUlistElement]] after compile is outputed

2014-01-29 Thread Sander Elias
Hi Yonatan, No, I have no idea. Why the complexity in your directive? Couldn't you use a normal template directive? If you put up a plunk or fiddle illustrating your problem, sure one of us is willing to take a look. Regards, Sander Elias -- You received this message because you are

[AngularJS] Re: why doesn't Angular throw exception for un-assigned isolate scope properties?

2014-01-29 Thread Sander Elias
Hi Nikita, You are right, according to the docs, at least your use of foo should throw an exception. The case of bar might not. Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop receiving

Re: [AngularJS] Re: handling 302 redirect with $xhr

2014-01-29 Thread Sander Elias
On Wednesday, January 29, 2014 3:28:50 PM UTC+1, Michael Hunziker wrote: What I could do is implement an httpInterceptor which will handle response errors with status code 0. As soon as I get such a response I could trigger a $window.location.reload. This would again trigger the proxy and

Re: [AngularJS] Re: handling 302 redirect with $xhr

2014-01-29 Thread Sander Elias
Hi Michael, The response object in AngularJS looks like this: Object {data: , status: 0, headers: function, config: Object} What I would expect is status code 302 and even the redirect location, so that I could handle the redirect to the login-page in Angular myself... Well, I was assuming

[AngularJS] Re: override $httpProvider.defaults?

2014-01-29 Thread Ed
Disregard - of course, I looked at it closer after posting and I realized I was setting it wrong at the individual $http level. It actually does override the defaults. On Wednesday, January 29, 2014 9:58:12 PM UTC-5, Ed wrote: I have an application that involves making XHR requests to

[AngularJS] validation reset after submit

2014-01-29 Thread telagraphic
When I click submit on my Add Me on my users page, the form validation errors pop up. Shouldn't they reset and wait for the input to become dirty again? http://plnkr.co/edit/P9DwdaFTWGDiYnjiddaj This also occurs on the Flow Length Time input on the bets page... Am I missing something to reset

[AngularJS] Re: validation reset after submit

2014-01-29 Thread Sander Elias
Hi, After you changed the content of your form in your controller you should set it to it pristine state, add this to your controller: $scope.user_form.$setPristine() Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe

[AngularJS] Re: Angularjs and Window Phone 8

2014-01-29 Thread rabi
http://onehungrymind.com/windows-8-and-angularjs/ a good reference to begin with ! On Sunday, February 3, 2013 5:09:15 PM UTC+5:30, DanX wrote: Hello I am looking for a sample on how to use angularjs in windows phone 8 HTML 5 app in visual studio. when i make websites i can make it work

[AngularJS] Re: validation reset after submit

2014-01-29 Thread telagraphic
Thank you Sanders. Didn't know about that handy method... -- 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

Re: [AngularJS] Re: validation reset after submit

2014-01-29 Thread Bernhard Rode
There's also $scope.user_form.$setDirty() ​ if you need the other way ​ around.​ 2014-01-30 telagraphic telagrap...@gmail.com Thank you Sanders. Didn't know about that handy method... -- You received this message because you are subscribed to the Google Groups AngularJS group. To