[AngularJS] Re: AngularJS: OPTIONS preflight call preceding a $http.post request

2013-12-19 Thread Sander Elias
Hi Shaun, Did you try a debugging proxy? like http://fiddler2.com/ or http://httpkit.com/wiretap or http://www.charlesproxy.com/ Those will help you track down the problem. I highly doubt that this is an AngularJS issue. Perhaps you somehow have stumbled upon a browser issue, but most of the

[AngularJS] Re: ngIf animation not triggered on content change

2013-12-21 Thread Sander Elias
Hi Harald, The ngIf directive shows the animation if your expression changes. As it is an *if expression* it only knows about *true *and *false*. when the expression changes from an true to a true, the animation is not triggered. I changed your plunk to illustratue this:

Re: [AngularJS] Re: Best way to architect global disabling of UI components during time-intensive operations

2013-12-30 Thread Sander Elias
Hi Frank, Angular takes care of that. just make sure there is a digest cycle before entering your time-consuming function. Just like the timeout in the previous messages. I created a small plunk http://goo.gl/0y95Zy to show how it works: In this sample I used a setTimeout on purpose, to

[AngularJS] Re: jqLite: how to query for a button with text add me

2014-01-02 Thread Sander Elias
Hi Novo, Did you try the button on the right upper corner, the one that say's: 'view source' ? ;) it will take you here: https://github.com/angular/angular.js/blob/v1.2.6/src/jqLite.js#L15 Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS

[AngularJS] Re: Adding new item to list and managing focus

2014-01-02 Thread Sander Elias
Hi Ed, As you know which row has to be selected, you can create an small directive that put the focus on the first 'input' If you put your sample up in a plunk or fiddle, I will happily take a stab at it! Regards Sander -- You received this message because you are subscribed to the Google

[AngularJS] Re: jqLite: how to query for a button with text add me

2014-01-02 Thread Sander Elias
Oh, by the way, the newer versions of angular use queryselectorall in jqlite, this will make your task a bit easier:) 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,

[AngularJS] Re: on refresh the page angular service returns undefined

2014-01-02 Thread Sander Elias
Hi, A refresh flushes everything from memory. I guess that you'r state is saved somewhere that keeps retained. However, as everything else is brand new, you can get stuff like this happening. the solution is to automatically re-login on refresh, or to completely remove all state that has to do

Re: [AngularJS] Re: Security in Angular.js

2014-01-02 Thread Sander Elias
Hi Daniel, It enables you to calculate an md5 hash for your script, and compare that with the server. that way, you know pretty sure your script is not altered. If you demand the checksum on the server, before giving out any data, you can be fairly sure that the scripts are not altered.

Re: [AngularJS] Re: Security in Angular.js

2014-01-02 Thread Sander Elias
If he has indeed full access, there is nothing that can be done except vigilant server-side security. However, that's hard as the client is completely compromised, and the attacker has all the 'keys'. Real security is very hard to reach on client-server systems. Even on non-web applications

Re: [AngularJS] Re: Adding new item to list and managing focus

2014-01-02 Thread Sander Elias
Hi Ed, here is a sample http://goo.gl/93AXHC on how to solve this! Is this enough to get you started? 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

[AngularJS] Re: Consuming angular directives from ember

2014-01-02 Thread Sander Elias
Hi David, I only took a quick look at ember, so I have no experience there! Nevertheless I think it is entirely possible what you want to do. As long as you make sure your directive is completely self-contained, it should be to ember no different than any other html-tag. so, as long as you

[AngularJS] Re: call ng-change after selecting values from two dropdown

2014-01-02 Thread Sander Elias
Hi Bhushan, Don't use ng-change for this. put in an $scope.$watch, and monitor in there when both values have changed. However, I think this is bad UI design. What happens if you user, after first selecting something changes his mind, and changes then only 1 dropdown? Regards Sander -- You

Re: [AngularJS] how to manage CRUD database operations and data model synchronization with angularjs

2014-01-02 Thread Sander Elias
Hi Calvin, You can use the same toolset you used before angular. you can use a cookie to retain the session, and/or use an token you put in the header of each request. You can even put the token in the default/general settings, so you only need to to it once. Regards Sander -- You received

[AngularJS] Re: Directives Loading Before $resource Returns Data

2014-01-02 Thread Sander Elias
Hi Paul, I put in an timeout to simulate data coming in at a later time, also I took your fiddle http://jsfiddle.net/SanderElias/emL7D/, and changed the directive a bit. basicly I made it a lot simpler. I think it should work now with async data too. for a directive like this, you only need a

[AngularJS] Re: Directives Loading Before $resource Returns Data

2014-01-02 Thread Sander Elias
Hi Paul, Your directive is probably indeed firing before the resource comes back. that should not be the problem. In the watch you can detect if the data is there, and if not, just return. I suspect your problem is not as much with the directive, as it is with the way you handle your data. If

[AngularJS] Re: Directives Loading Before $resource Returns Data

2014-01-03 Thread Sander Elias
Hi Paul, Had little to do with the directive, except for that plotr seems very sensitive to bad data. also it can't handle promises, so I had to make sure those were resolved before putting in the data. here is a version http://goo.gl/pIRYag that will work. I'm not sure why you had chosen to

Re: [AngularJS] Controller

2014-01-03 Thread Sander Elias
Hi, If you put your issue inside a plunk or a fiddle, most of us are happy to help. Now all I can do is tell you you have a error in your code! Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

[AngularJS] Re: Can't connect angular to rails model

2014-01-03 Thread Sander Elias
Hi Steven, you seem to have missed an ng-repeat in your sample, this might get you going: div class=roundedTwo ng-repeat='todo in todos' input type=checkbox ng-model=todo.done span class=done-{{todo.done}} todos{{todo.title}} - {{todo.importance}}/span /div Regards Sander

[AngularJS] Re: Can't connect angular to rails model

2014-01-04 Thread Sander Elias
Hi Steven, the formatting is a trick I got from Daniel, its called ‘markdown here’. Can you try the following code, and give back the result from the console? Todo.query(function (x) { console.log(x); $scope.todos= x; }); Regards Sander -- You received this message because you are

[AngularJS] seSuperTable. A lightweight AngularJS sorted table solution.

2014-01-04 Thread Sander Elias
it is of some use for anybody else in here. here is the resulting plunk! http://goo.gl/UDw0cM let me know if it is of some use to you. Regards Sander Elias -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop receiving

[AngularJS] Re: Can't connect angular to rails model

2014-01-04 Thread Sander Elias
Hi Steven, Oh sorry, I was not very clear on that. Put it in your controller, on the place you now have: $scope.todos = Todo.query() replace that with the code I gave you earlier on, and share the result of that! Regards Sander -- You received this message because you are subscribed to

[AngularJS] Re: Can't connect angular to rails model

2014-01-04 Thread Sander Elias
Steven, that makes sense ;) Move the $scope.getTotalTodos = function () { return $scope.todos.length; }; into the Todo.query(function (x) { console.log(x); $scope.todos= x; $scope.getTotalTodos = function () { return $scope.todos.length; }; }); and then try

[AngularJS] Re: Can't connect angular to rails model

2014-01-04 Thread Sander Elias
Steven, I know, it was apparent from the localhost url. However, your server is still giving you an error, instead it is handing you an error. This is a problem/configuration issue with your local rails server! Regards Samder -- You received this message because you are subscribed to the

[AngularJS] Re: Recommended approach for passing search / pagination parameters for list view

2014-01-04 Thread Sander Elias
Hi Michel, Did you consider sessionStorage? I know that will only work on the same session, but that might just be what you need. If you need this to work across browsers/systems you have 3 options. 1. store the needed data in the url. (uggly, but works, and you can send the url to

[AngularJS] Re: Add many icons to nav-tree

2014-01-04 Thread Sander Elias
Hi Ben, It is not clear to me what you want to accomplish. can you post a plunk or fiddle showing what you have, and then describe what you need? Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and

[AngularJS] Re: Detect change in cell in ng grid

2014-01-04 Thread Sander Elias
Hi Tek, There in an ngBlur directive in 1.2.x for quite some time now. Can't you just put in a scope.$watch on the data you need to be saved? If not, create an onFocus directive, make it store to an temp variable, and compare on blur, if it's changed, save otherwise ignore. Regards Sander --

[AngularJS] Re: Storing null value inside database while trying to save data using angularjs and asp.net mvc

2014-01-05 Thread Sander Elias
Hi Mojam, Your post is barely readable to me, you did choose a really tiny font. if you post this much code, you might better use an plunker or an fiddle to explain your issue. However, the problem is in your server side logic. the payload you need is inside a ‘post’ wrapper in the object.

[AngularJS] Re: ngStyle can't add inline style as intended

2014-01-05 Thread Sander Elias
Hi Allen, Have a look at this http://plnkr.co/edit/0kFL0jmawNCiN35R3Hzv?p=previewplunk, it works as it should. you have used ng-style={{organCover}} this means that your expression is translated into the string {'background-image':

[AngularJS] Re: seSuperTable. A lightweight AngularJS sorted table solution.

2014-01-06 Thread Sander Elias
Hi Tony, Hmm, I did fix the space issues. It is the bootstrap styling that prevents the background color. If you don't use bootstrap, you can do whatever you want with it. (or don't use zebra-striped tables!) I fixed both issues in the plunk! Regards, Sander -- You received this message

[AngularJS] Re: Add many icons to nav-tree

2014-01-06 Thread Sander Elias
Hi marwadev, That doesn't clarify anything for me! A plunk or fiddle has nothing to do with bootstrap! 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

[AngularJS] Re: AngularJS $http and REST servers : 'mongodb-rest',

2014-01-07 Thread Sander Elias
. If you need more information don't hesitate to ask! Regards Sander Elias -- 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

Re: [AngularJS] Re: AngularJS $http and REST servers : 'mongodb-rest',

2014-01-07 Thread Sander Elias
Yvon, You are welcome. and indeed the REST specification leaves quite a lot up to the implementors. early adaptations vary even more than moderner ones. As far as I know it isn't even a formal standard. May I ask why you are testing on those different platforms? Are you looking for an

Re: [AngularJS] Re: AngularJS $http and REST servers : 'mongodb-rest',

2014-01-07 Thread Sander Elias
Yvon, Ah, I see. a little while ago I wrote a super simple rest interface in node for an demo. It is utilizing an json storage. There is not that much too it. If you are interested I can see if I can still find that code. It is demo code, so not battle tested though! Beside that, there is a

Re: [AngularJS] Re: model containing html and data

2014-01-07 Thread Sander Elias
HI, Yeah, CSS + javascript. Also AngularJS can do a fine job there! 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

[AngularJS] Re: $http GET boolean

2014-01-07 Thread Sander Elias
Hi Daniel, Can you point me to that section? I could not find it on JSON.org neighter in the ecma 404 spechttp://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf. (that name still cracks me up ;) ) I just read the json rfc (wasn't aware of that one!) and it is indeed stated

[AngularJS] Re: Datepicker

2014-01-07 Thread Sander Elias
Archana, If you want to get some serious help with your problem, create a plunker where everything is working except for the problem you are having. -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

[AngularJS] Re: Add, Remove, hide and show html in a super set of html template

2014-01-09 Thread Sander Elias
Pushpendra, Ah, so you have now problems maintaining your application that is build using cut and paste, and now want a cut and past solution for it? Sorry, that's not the way it works. You have to learn the framework, and do the hard work yourself, or hire one of us, and let us do the hard

[AngularJS] Re: Datepicker

2014-01-09 Thread Sander Elias
Archana, You know I do this in my (very sparse) spare time don't you? If you need solutions ASAP, I'm available for rent ;) I cleaned up the mess in the whole project, added the needed dependencies to the plunk. Had to copy and past the ui-date module, because it would not work from a cdn. It

[AngularJS] Re: Directive compile function: setting ngModel

2014-01-09 Thread Sander Elias
Small mistake, you are pausing the compilation to manipulate the template. the template is already compiled by the time your in your link function see:http://jsbin.com/EwUkeTUG/2/edi http://jsbin.com/EwUkeTUG/2/edit Regards Sander -- You received this message because you are subscribed to the

Re: [AngularJS] Re: Datepicker

2014-01-09 Thread Sander Elias
@Pawel Thanks. It happens sometimes ;) 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,

[AngularJS] Re: non scope functions and variables

2014-01-09 Thread Sander Elias
Hi All, Ok, maybe I’m weird, but doesn’t anybody see the obvious bug in here ;) function controller( $scope ){ $scope.var; var myvar = 'Hello world'; function myfunction(){ alert(myvar); // - I assume this is the needed code for this brilliant piece!! } } On a

[AngularJS] Re: Button

2014-01-09 Thread Sander Elias
Din’t I answer this already a short time ago? button onclick='window.location=http://www.google.nl'Go google/button Is that what you need? regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

Re: [AngularJS] Re: non scope functions and variables

2014-01-09 Thread Sander Elias
Jake, That is something different! Probably those controllers are designed to be used with the controller-as constructor. a sample say’s more then 1000 words: js: App.controller('somecontroller',function () { this.name='Sander Elias' }); html/template: div ng-controller='somecontroller

[AngularJS] Re: How to assign result $http request to variable?

2014-01-13 Thread Sander Elias
hi Александр, The easiest way to accomplish what you want is using the resolve option during the routing. see: http://docs.angularjs.org/api/ngRoute.$routeProvider Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from

[AngularJS] Re: Toggle Button with 2 colors and 2 glyphs custom directive?

2014-01-13 Thread Sander Elias
Hi Andre, there where some problems with your bin. here is my version: http://jsbin.com/AQOCEHer/1/edit Here is a version that works. Have a look at what I did, and then question me about it if you don't get the why! Regards Sander -- You received this message because you are subscribed to

[AngularJS] Re: custom directive attributes vs. elements

2014-01-14 Thread Sander Elias
another mechanism. If you want to know more about this, google around for it https://www.google.nl/search?q=html5+closing+tagsoq=html5+closinaqs=chrome.1.69i57j0l5.9244j0j7sourceid=chromeespv=210es_sm=93ie=UTF-8 ;) Regards Sander Elias -- You received this message because you are subscribed

[AngularJS] Re: Project structure and yeoman generator for large angular apps

2014-01-14 Thread Sander Elias
Hi Chris, Thank you. It was about time that a more sane Yeoman generator came into play. When time permits, I will take it for a serious spin! Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

[AngularJS] Re: Dot notation in isolate scope declaration in a directive

2014-01-14 Thread Sander Elias
Hi Warish, This is how javascript works! Nothing angular can do about that. Still, this is working, however, not the way you think. If you want access to the property, you need to do something like this: scope['myObject.myProperty'] in your code. This is called a string

[AngularJS] Re: ng-checked and ng-selected

2014-01-14 Thread Sander Elias
Hi Mark, ng-checked and ng-selected do serve another purpose then ng-model. Mostly one will use those while building custom checkboxes or selection widgets. The main difference is that those don't have 2 way binding. Mostly those are used for hinting default's and stuff like that. Regards

[AngularJS] Promises and UI updates.

2014-01-15 Thread Sander Elias
Hi All, I was working on a project and got some strange behaviour. (In retrospect, it wasn't!) While using promises, and my UI updates didn't follow as I would have expected. So I stepped out, and created an plunk to isolate the issue, as that's what I do if I want to sort stuff out. While

[AngularJS] Re: Open child window within same application (same services, dependency injection, the lot!)

2014-01-15 Thread Sander Elias
Hi Mattias, No, it is not possible to share a service, or anything between 2 windows. It is however possible to communicate between multiple windows. But first let me ask you, is this application just run on those 2 screens for 1 user? Or is the same application running for multiple users? If

[AngularJS] Re: Open child window within same application (same services, dependency injection, the lot!)

2014-01-16 Thread Sander Elias
Hi Mattias, Ok, that's the issue. if it's on 1 computer for 1 user, you can use html5's local-storage to communicate between multiple instances. However, as you have more then 1 system, you might as well solve it system wide while you are busy with this. What server software are you using?

[AngularJS] Re: Running code after ng-repeat has rendered

2014-01-16 Thread Sander Elias
Frodio, Have a look at priorities, and the pre-link function. If you can't get it to work, create a plunk illustrating your issue, and one of us is surely willing to help. Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To

[AngularJS] Re: Open child window within same application (same services, dependency injection, the lot!)

2014-01-16 Thread Sander Elias
Mattias, Localstorage has events (somehow everybody keeps forgetting this) it fires an event when updated. so it's pretty easy to write a service that makes use of this. This is making cross-windows communication a snap! However, I don't think you should go this way! As this is a solution for

Re: [AngularJS] Re: update ng-model on the fly

2014-01-16 Thread Sander Elias
Hi Pushpendra, You can do this adding your own directive that does nothing more then adding the ngModel attribute with the name you want it to handle. My guess is that this is a approx 10 lines of code. If you would have put up an plunk or fiddle, I would have made it for you ;) Regards Sander

[AngularJS] Re: Directives Scope behavior changed since ~1.2.5 ?

2014-01-16 Thread Sander Elias
Hi, This is just how isolate scope works. There was a bug that made it leak into places where it didn't belong. This bug was fixed in 1.2.0https://github.com/angular/angular.js/blob/master/CHANGELOG.md#120-timely-delivery-2013-11-08 , but for your code to work, you don't need isolate scope,

Re: [AngularJS] Re: Open child window within same application (same services, dependency injection, the lot!)

2014-01-17 Thread Sander Elias
Hi Mattias, I'm so sorry for you! But hey, localStorage works even there! :-) 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

[AngularJS] Re: How can I ajax in some data, and make it availble app wide...

2014-01-19 Thread Sander Elias
Hi P. This is discussed quite a few times already, and there are basically 2 scenarios. 1. Insert the data into the HTML on the server. This is the most used solution, and you don't need another round trip to fetch the config. If this is possible for you, this is best way to go.

[AngularJS] Re: How to prevent circumevent bookmarking at initialization

2014-01-19 Thread Sander Elias
Hi Mike, Well, the simplest solution that comes to mind is use localStorage to monitor progress. That way, when anybody lands on a step where he doesn't belong yet, you can redirect him to the place they left of. If there is no progress, that's the start. You can use ngRoute to handle this.

[AngularJS] Re: How do I resolve and assign an inner controller from the outer's scope?

2014-01-20 Thread Sander Elias
Hi Mike, What you asking is possible, however, it involves some serious hoop-jumping! Before going this road, may I ask what you are trying to achieve? Perhaps there is a much simpler way to reach enlightenment ;) Regards Sander -- You received this message because you are subscribed to the

[AngularJS] Re: How do I resolve and assign an inner controller from the outer's scope?

2014-01-20 Thread Sander Elias
Mike, Hmm, after giving it a second thought, the hoop-jumping wasn't that difficult :) Here is a working fiddle http://goo.gl/JmzQY2 Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop receiving

[AngularJS] Re: [angular.js] Binding with input type=number

2014-01-20 Thread Sander Elias
Hi Andy, If you need this, it is not that hard to make angular do what you need. in this fiddle http://goo.gl/K5k9RZ I created an small directive to handle what you need, and you don't even have to change anything in your template/HTML Regards Sander -- You received this message because you

[AngularJS] Re: ngOptions doesn't work correctly with ngBindHtml

2014-01-20 Thread Sander Elias
Hi Valentine, The only other option that comes to my mind is to preparse your data. What I mean by that is that before displaying your data, you should convert it to unicode. something like: function htmlDecode(input){ var e = document.createElement('div'); e.innerHTML = input;

[AngularJS] Re: Two directives on the same element, one manipulates the part of the DOM the other directive created

2014-01-20 Thread Sander Elias
Hi Kalle, Although your sample works now, this is not the right way to approach the problem at hand. You are still using the DOM as source of truth. In angular it isn't. If you are reading the dome to get some data, you are doing it wrong. have a look at this:

[AngularJS] Re: How can I ajax in some data, and make it availble app wide...

2014-01-20 Thread Sander Elias
Hi Stephen, here you go: https://groups.google.com/forum/#!searchin/angular/configuration$20bootstrap/angular/QQcKjcG18z0/887cmL5hEx0J https://groups.google.com/forum/#!searchin/angular/configuration$20bootstrap/angular/QQcKjcG18z0/887cmL5hEx0J If you combine my answer(s) with that off Jason,

[AngularJS] Re: Two directives on the same element, one manipulates the part of the DOM the other directive created

2014-01-20 Thread Sander Elias
Hi Kalle, another alternative, if you really just need an array as you started your sample with: http://jsfiddle.net/SanderElias/5v35s/ Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

[AngularJS] Re: From angular framework to using some other framework.

2014-01-20 Thread Sander Elias
Hi Raja, A rewrite? Basicly the same for whatever framework you are trying to swap out for another. Angular isn't different in this regard. What is different, is that you would dearly miss a lot of what angular does in your 'new' version. Regards Sander -- You received this message because

[AngularJS] Re: How can I ajax in some data, and make it availble app wide...

2014-01-20 Thread Sander Elias
Hi Stephen, Looks good to me. The core angular team seem to follow my #1 approach. Testing is easy, just put in some hardcoded json in your constant, and you're set to go. And yes, it's outside angular, because it needs to be in this case. However, that you use angularJS in your app, doesn't

[AngularJS] Re: ng-view not recognized from included templates

2014-01-20 Thread Sander Elias
Hi Dmitri, This has to do with the way ng-route works. During the CONFIG phase of your app, the router looks for the ng-view directive. Thats not yet loaded at that moment, so, nothing gets display'd Also, you can have only 1 ng-view in your app. (how is route going to figure out which one you

[AngularJS] Re: Directive link function end

2014-01-21 Thread Sander Elias
Hi Ziv, Looks like a prime candidate for an promise to me! create a promise, in your initlayer you can resolve the promise when it is done. then in the calling controller you can do something like: functionthatputsatargetonthemaplayer().then(...) Regards Sander -- You received this message

[AngularJS] Re: Why isn't my isolated scope working?

2014-01-21 Thread Sander Elias
Hi Fordio, Because the link function gets access to the transcluded scope. This is not the isolate scope. actually the isolate scope is a sibling of the transcluded scope. Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To

[AngularJS] Re: ng-html-bind causing $sanitize:badparse with special character ''

2014-01-21 Thread Sander Elias
Hi Patrick, Well, your sting is not HTML-'safe', and can not be parsed. If you need to include and in a string you want parsed, you have to escape those. There are a few other things that needs escaping too, but those are the most important ones. you need to replave the with lt; and the

[AngularJS] Re: Using Typescript and AngularJS

2014-01-21 Thread Sander Elias
Hi Todd, I have no actual experience with typescript. However, are you aware of this talk http://www.youtube.com/watch?v=u6TeBM_SC8w? I think it answers a few of your concerns. Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To

Re: [AngularJS] Re: ng-html-bind causing $sanitize:badparse with special character ''

2014-01-21 Thread Sander Elias
Patrick, You're welcome. The reason the old version did work, was due to the fact, that the innerHTML got set without any kind processing. Most browsers can handle very malformed html. The new $SCE system does need to parse the string, to make sure there is nothing in there that can compromise

[AngularJS] Re: on click help

2014-01-21 Thread Sander Elias
Hi Philip, Well, the problem lies in the fact that you are *not* using angularJS syntax. If you want to use angular, you better of using ng-click, and define the dashboard function on your scope. In your controller, you have the SELECTED_REPORT.NAME readily available on the scope. Regards

[AngularJS] Re: Address one instance of a directive

2014-01-21 Thread Sander Elias
Hi Ttmt, Apart from the fact that your code probably calls scope.$init twice it looks ok to me. Can you put up a plunk or fiddle demonstrating the problem you have at hand? Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To

[AngularJS] Re: ng-options with array of objects?

2014-01-21 Thread Sander Elias
Hi Stephen, Have a look at this plunk http://plnkr.co/edit/h0Ls6w?p=preview. The Track by was throwing the ng-options off. It isn't exactly the same as ng-repeat ;) Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe

[AngularJS] Re: Address one instance of a directive

2014-01-21 Thread Sander Elias
I see, Well, just use it twice, or more. However, the underlying plugin needs to support multiple instances! 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

[AngularJS] Re: Address one instance of a directive

2014-01-21 Thread Sander Elias
You need to access to other ones from inside either one? Or what do you need exactly? -- 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

[AngularJS] Re: I use Google Feed API with AngularJS but it dosen't work!

2014-01-21 Thread Sander Elias
Hi Randy, With questions like those, you really should build an plunk or fiddle do demonstrate your problem. As far as I can see it now, it is wrong in the ggrss function. It looks like it is not returning what it should. Regards Sander -- You received this message because you are subscribed

[AngularJS] Re: How do you use dynamic ng-show values inside a directive template?

2014-01-21 Thread Sander Elias
Hi Ken, For problems like this you really should build a plunk or fiddle! You guess is right, it is a problem with scope, or something else! ;) How about creating a function on your scope that does the checking and use that in your template? Regards Sander -- You received this message

[AngularJS] Re: Filters - speed and size of result set

2014-01-21 Thread Sander Elias
Hi Tom, The way you do this isn't the most efficient way, Your result data get's piped trough 5 filters. A couple of them need to traverse your entire data-set. This is ok(ish) for a small data-set, but if it grows this becomes a serious lag. For myself I would replace all those filters with

Re: [AngularJS] Re: Filters - speed and size of result set

2014-01-22 Thread Sander Elias
Hi Tom, On a more serious note, filters are not that hard to create, and the documentation http://docs.angularjs.org/guide/filteris ok on this! Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and

[AngularJS] Re: Storing Grid and column options best practices

2014-01-22 Thread Sander Elias
Hi Migo, Where are those bunchesof_columnsettings coming from? If you get those from an outside resource, you can move it to a service. If you are typing them manually into the controller, I would suggest moving them to the template something like: griddirective .. column

Re: [AngularJS] Re: Filters - speed and size of result set

2014-01-22 Thread Sander Elias
Hi Tom, So you suggest that one .filter can control all the different groups of checkboxes? Each checkbox group needs to pass a different value (sometimes it's a text match, sometimes a boolean) Yes indeed. You can pass a much parameters to your filter as you need. In your case I would

[AngularJS] Re: AngularJS SQL Query Builder similar to http://redquerybuilder.appspot.com/

2014-01-22 Thread Sander Elias
Hi Maneesh, Looks like a good learning project. Go ahead and start building. If you come across angular related issues, you can always put up a plunk/fiddle and ask for help here! Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To

[AngularJS] Re: AngularJS 1.2.8

2014-01-22 Thread Sander Elias
Hi Sven, Perhaps this question is better on a Firebase forum? At least there is a better change that you get an relevant answer! Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop receiving

[AngularJS] Re: AngularJS Mentor

2014-01-22 Thread Sander Elias
Hi Frode, You can contact me if you like. 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

Re: [AngularJS] Re: Filters - speed and size of result set

2014-01-22 Thread Sander Elias
Hi Tom, On mobile? Nope, not the best way. It will eat up too much memory. What you need can be done without modifying your data. Don't put in extra things in memory unless you really must! Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS

[AngularJS] Re: angular ui-bootstrap $modal service template

2014-01-22 Thread Sander Elias
Alon, You can put in your own template. Can't you just do that? 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

Re: [AngularJS] Re: Filters - speed and size of result set

2014-01-22 Thread Sander Elias
Hi Tom, Go ahead, create a new plunk and see how far you get. If needed, I will hold your hand ;) 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

Re: [AngularJS] Re: Filters - speed and size of result set

2014-01-22 Thread Sander Elias
Tom, You can combine a couple of those filters into 1 object. then send this object to your custom filter. In there you can handle the different things in 1 go! The samples you provided are a starting point indeed. Combine this with the techniques I used in my or filter, and presto! -- You

[AngularJS] Re: angular ui-bootstrap $modal service template

2014-01-22 Thread Sander Elias
No, I mean passing your own html to the template option of $modal 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

Re: [AngularJS] Re: Filters - speed and size of result set

2014-01-22 Thread Sander Elias
Allmost! small mistake: function(results, checkboxData){ console.log(checkboxData); var result = []; return result; } should be: function(input, checkboxData){ console.log(checkboxData); var result = []; input.forEach(function (item) { if (item

[AngularJS] Re: HTTP_X_REQUESTED_WITH

2014-01-22 Thread Sander Elias
Ahmend, Well, in the angular source of coarse! 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

Re: [AngularJS] Re: Filters - speed and size of result set

2014-01-22 Thread Sander Elias
It is indeed. You need some vanilla JS to create the function that does the actual checking. 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

[AngularJS] Re: angular ui-bootstrap $modal service template

2014-01-22 Thread Sander Elias
Ah, Perhaps something changed, I was under the impression that the header and the footer where part of the template! A small utility function/service can then be used to generate the boilerplate needed. Regards Sander -- You received this message because you are subscribed to the Google

Re: [AngularJS] Re: Filters - speed and size of result set

2014-01-22 Thread Sander Elias
Oh and the slider isn't a problem also. Your check_if_this_item_needs_inclusion(item) function will get slightly complex though ;) 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: how to get the element holding the event listener (ng-click) ?

2014-01-22 Thread Sander Elias
Hi Olivier, You are right, if you click on an element, that you removed from the dom, then added, then removed again, and then added again, somehow the browser lost track of its parent! I'm not sure where to even begin on this one! I'm not even sure if it's an angular or a browser issue.

Re: [AngularJS] Re: Filters - speed and size of result set

2014-01-22 Thread Sander Elias
Tom, I did tell you the check_if_this_item_needs_inclusion(item) function will get slightly complex didn't I? Are you just checking for True? then yes, that's a way to handle it. That's the part that decides that you need to check even deeper into your data. You might even need a switch

  1   2   3   4   5   6   7   8   9   10   >