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

2014-01-16 Thread Mattias Wallenberg
Events on localStorage, I wasn't aware of that. Cool! This is an update to parts of a legacy application, which brings a lot of baggage to the project. For example, it can't be opened in two different browsers, because it only works in one specific version of a specific browser to begin with. Can

[AngularJS] Re: Promises and UI updates.

2014-01-16 Thread Sander Elias
Hi Olivier, I'm still looking forward to your response. Always eager to learn new things! 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+

[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.0 , but for your code to work, you don't need isolate scope,

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

2014-01-16 Thread Jacob Biggs
Again, what you are expecting to happen is impossible. Whatever is in the ng-model attribute should directly reference a variable on the scope. No string interpolation takes place in ng-model. In your example, you would want: $scope.inventory = { 'nn' /* name you desire */ : { /* actual data */

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

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

2014-01-16 Thread Pushpendra Kumar
Thanks Jacob, But it does not work. I applied as: template: controller.js: $scope.inventory = { invName1: 'nn' /* all the things */ }; But in browser on inspect element i saw that: And I expect: On 17 January 2014 12:39, Jacob Biggs wrote: > If I understand correctly, then, what you are t

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

2014-01-16 Thread Jacob Biggs
If I understand correctly, then, what you are trying to do with only a Controller and a scope variable is impossible. However, since the string in ng-model is interpreted as plain old javascript, you could bind your entire data collection to the scope like: $scope.inventory = { invName1: {}, inv

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

2014-01-16 Thread Pushpendra Kumar
Thanks Jacob for reply. I have covered basics already, I wrote "don't know" because of its matter of having value of ng-model as variable. Please go through this again: controller.js : $scope.name = "invName"; now template.html: In browser it should be like: or if i update in controller.js: $sco

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

2014-01-16 Thread Jacob Biggs
I believe the transcluded content is not in the isolate scope. Do you absolutely require isolate scope in your app? On Thursday, January 16, 2014 7:34:47 AM UTC-7, Olivier Clément wrote: > > Hi all > > I've updated my app to 1.2.5 when it was released, and found there was a > few things that bro

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

2014-01-16 Thread Jacob Biggs
Perhaps if you gave us a bit more information about the problem you are trying to solve, we would be able to better help you out. You mentioned you didn't know the syntax for using ng-model, which tells me you've tried diving into Angular before reading up on it! Oh no! Before moving forward wi

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

2014-01-16 Thread Pushpendra Kumar
Thanks for reply. MY problem is different. I define it. I want to use a template for multiple modules. I am getting metadata from db as well model names for all elements. I want : controller.js : $scope.name = "invName"; now template.html: In browser it should be like: And want to create form js

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

2014-01-16 Thread Jacob Biggs
Did you happen to follow the tutorial? Have you tried simply setting the value in the controller? On Thursday, January 16, 2014 6:16:39 AM UTC-7, Pushpendra Kumar wrote: > > Hello, > > I am new guy in angular world. > I want to set the value of ng-model from controller and chang

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

2014-01-16 Thread Aadithya C Udupa
One updates the ng-model on the view using the $scope object in the controller. Check out this hello world plnkr - http://plnkr.co/edit/dBJmLr?p=preview Whenever you change the value of $scope.helloMessage, view gets updated automatically. Please let me know if I am missing something. On Fri, J

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

2014-01-16 Thread Pushpendra Kumar
Is there any way to update value of ng-model attribute using controller's scope object? On Thursday, 16 January 2014 18:46:39 UTC+5:30, Pushpendra Kumar wrote: > > Hello, > > I am new guy in angular world. > I want to set the value of ng-model from controller and change > this

[AngularJS] How to send complex parameters using $http.delete

2014-01-16 Thread Cleomar Pestilli
Hi guys, I'm having problems to figure out how to send a array of number as parameter in a delete request. something like: function x (fooList: number[]) { $http.delete(URL) { params: { userIDList: userIDList } }) } Is that correct? Tks -- You received this message because yo

[AngularJS] Re: Not getting fired up in in IE8/IE7 with 1.2.x

2014-01-16 Thread Stian Pedersen
*Doh, correct url is: https://ext.makenewsmail.com/subscriptionform/#!/1398/4878* kl. 18:50:38 UTC+1 torsdag 16. januar 2014 skrev Stian Pedersen følgende: > > Seems like my Angularjs app doesn't fire up in IE browsers (the ng-view is > just left blank).The site is located here: > https://ext.m

[AngularJS] ng-conf.org

2014-01-16 Thread Edmilson Lani
Online now... -- Atenciosamente Edmilson Lani -- 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 em

[AngularJS] Can single Main page contain multiple sub page instaces each containg ng-upload components?

2014-01-16 Thread Micke
I'm stuck in situation where I have a Main html & js files which includes same Sub page (html & js) containing ng-upload component two times. In Main page's controller I have defined different javascript filename arrays to both ng-included Sub pages instances. To Sub page's controller I pass

[AngularJS] Not getting fired up in in IE8/IE7 with 1.2.x

2014-01-16 Thread Stian Pedersen
Seems like my Angularjs app doesn't fire up in IE browsers (the ng-view is just left blank).The site is located here: https://ext.makenewsmail.com/subscriptionform/#/1398/4878 and works in all other browsers. I've done all the recommendations (view sourcecode). Manual boostrap doesn't solve

[AngularJS] How to expand DIVs the “angular way” (using angular masonry)

2014-01-16 Thread Pedro Peixoto
I'm trying to expand a DIV element on my angular layout. I'm using angular-masonry to give a mason-style to my layout, but now I need to expand those boxes on click. I've tried a lot of stuff, but it kept overlapping my others elements. Soon I figure

Re: [AngularJS] Selection bug when choosing a select value with keyboard

2014-01-16 Thread Andrew Kanieski
Hey Jacob.. I too experienced this issue running Angular 1.2.9 http://jsfiddle.net/s7CEz/2/ I added autofocus onto the select... but if you use up/down to select the first then tab to the next select and use up/down the first select resets.. (This was using Chrome). -- On Sunday, August 18,

[AngularJS] directives and scope - adding directives with compile function

2014-01-16 Thread Daniel Hinds-Bond
Please see: http://plnkr.co/edit/PLSdfgSeOw6L1506hnu7?p=preview I am confused as to why the accordionSection directive works but the tab directive does not. I'm trying to keep the markup cleaner by adding some ng-show tags in the directive compile function rather than directly in the html. Th

[AngularJS] Re: AngularJS chaining select

2014-01-16 Thread Marco Aurélio
Done! http://stackoverflow.com/questions/21153874/angularjs-chaining-select Reza credits; Em quinta-feira, 16 de janeiro de 2014 13h08min38s UTC-2, Marco Aurélio escreveu: > > I'm trying to implement that chained select, but chains aren't working > properly. > > Demo: http://plnkr.co/edit/ndm

[AngularJS] Model not attached to a form

2014-01-16 Thread calvin crane
I am starting to try and get my head around the ng way..so forgive my noob Q. I have a basic controller which is looking after a part of my demo sitewhich can be seen here or the source on github https://github.com/landed1/landed1.github.io. my question: I

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

2014-01-16 Thread Fordio
Thanks for the reply, I'm trying to think about my problem in a different way at the moment. If that doesn't pan out Ill put something up. Regards On Thursday, 16 January 2014 12:40:07 UTC, Sander Elias wrote: > > Frodio, > > Have a look at priorities, and the pre-link function. > If you can't

[AngularJS] Re: Model not attached to a form

2014-01-16 Thread calvin crane
I guess I also meant to say that I wanted ng-model separate from a form control in this case, so how do I let Angular know about it ? On Thursday, 16 January 2014 15:40:08 UTC, calvin crane wrote: > > I am starting to try and get my head around the ng way..so forgive my noob > Q. > I have a basi

[AngularJS] AngularJS chaining select

2014-01-16 Thread Marco Aurélio
I'm trying to implement that chained select, but chains aren't working properly. Demo: http://plnkr.co/edit/ndm7PFGK8akdaHra7Fdm?p=preview What I want, needing: e.g. when selecting 'alpargatas' as category, and with any listed brand selected, the category should be still selected as 'alparga

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

2014-01-16 Thread Olivier Clément
Sorry, wrong link; This is the good one: http://plnkr.co/edit/SZBedEHbYHt7QdE8F2Lb?p=preview On Thursday, January 16, 2014 9:34:47 AM UTC-5, Olivier Clément wrote: > > Hi all > > I've updated my app to 1.2.5 when it was released, and found there was a > few things that broke regarding custom

[AngularJS] Directives Scope behavior changed since ~1.2.5 ?

2014-01-16 Thread Olivier Clément
Hi all I've updated my app to 1.2.5 when it was released, and found there was a few things that broke regarding custom directives and scopes I've been looking at the changelogs and all and couldn't see anything that would affect this, but it definitely seems like a change on the angular side of

[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 a

[AngularJS] update ng-model on the fly

2014-01-16 Thread Pushpendra Kumar
Hello, I am new guy in angular world. I want to set the value of ng-model from controller and change this on other actions without using directive. Please help me. Pushpendra -- You received this message because you are subscribed to the Google Groups "AngularJS"

[AngularJS] Re: Angularjs and expressjs routing using passportjs for authentication

2014-01-16 Thread Samuel Ytterbrink
To debug try to comment out the static file middle-ware before curling the url. It could be that there is another middle-ware that grabs the request before its possible for this route to respond. On Wednesday, 15 January 2014 22:13:59 UTC+1, Tej Powar wrote: > > Hi > > I have a node.js applicat

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

2014-01-16 Thread Mattias Wallenberg
Hm, I hadn't considered localStorage for some reason. Some of the data is sensitive, so it might be a security concern, but it's worth checking out. Otherwise you should be able to create a service that accesses the child window and loads some data from it, right? The child window would have to

[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 unsubs

[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? ther

[AngularJS] Running code after ng-repeat has rendered

2014-01-16 Thread Fordio
Hi, I have a custom directive whose template includes an element with the ng-repeat directive. My custom directive needs to manipulate the DOM after the ng-repeat has done it's thing. Problem is, my custom directive's post link function runs before ng-repeat has changed the DOM - and I need i

[AngularJS] How to get notified when angular has finished rendering and has no outstanding $http calls before continuing?

2014-01-16 Thread Martin Kuhn
HI, I would like to have a similiar function like the protractor "waitForAngular" in clientScripts. How can I achive this in my angular app. It would be nice to be able to register when inner angular working starts and end. TIA Martin -- You received this message because you are subscribe

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

2014-01-16 Thread Mattias Wallenberg
Hi Sander, Ok, thanks, then I can discard that idea. The application is running on multiple computers, all working with the same database. So actually, they would all need to have some kind of auto-refresh in place. So I guess it makes sense that the two windows both update from the same datab

[AngularJS] Re: Proposal to amend $scope.archive function in the angularjs home page (todo.js of the second example)

2014-01-16 Thread hathym
just noticed that the video next to the example is doing it right with the filter function. On Tuesday, January 7, 2014 4:32:48 PM UTC+1, hathym wrote: > > From this: > > >1. $scope.archive = function() { >2. var oldTodos = $scope.todos; >3. $scope.todos = []; >4. angular.forEach