[AngularJS] Re: Lazy Loading with Angular

2014-05-16 Thread mark prades
Even with requirejs i'd say NOPE,since all modules need to be registered before the application runs,like any IoC container. And Angular container doesnt resolve dependencies asynchronously. -- You received this message because you are subscribed to the Google Groups AngularJS group. To

[AngularJS] Re: Framework for REST integration

2014-05-16 Thread Fabrizio Reale
Il giorno giovedì 15 maggio 2014 22:17:16 UTC+2, mario ha scritto: Ok. I understand now. In this case I would recommend building your own directives. you could create one directive for each input type (radio, text, select). Each form would have its own controller with an appropriate

[AngularJS] Re: Update $scope.variable value after POST

2014-05-16 Thread Sander Elias
Well, you are assigning your todo's as a result of your $http. That's a change, so the $watch will pick up on this change.. -- 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] Outer and inner Directive Problem ( with Plunker code )

2014-05-16 Thread Yves Kircher
Hi, why isnt my {{ componentInfo.textcentre }} displayed ? http://plnkr.co/edit/nT32pJx6uCLrydZvcLM6?p=preview -- 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] change Class of Only selected Directive

2014-05-16 Thread Anam Ansari
I have created Directive , on that i am using ng-class .what i want to do is on click of button i need to chane ng-class of only directive by matching their title(by a controller variable) . I want to keep buttons suppose i pass first directive title thenn only that directive color should get

[AngularJS] Re: Outer and inner Directive Problem ( with Plunker code )

2014-05-16 Thread Garry Taylor
hi Yves, I don't think that the directive can access textcentre as this is pushed into the component directive not the n1-template. see this for more details: http://plnkr.co/edit/bGHYw0FFOyfe8g1blVi5?p=preview Regards, Garry Taylor On Friday, 16 May 2014 11:05:45 UTC+1, Yves Kircher wrote:

[AngularJS] Re: change Class of Only selected Directive

2014-05-16 Thread Garry Taylor
Hi Anam, is this what your looking for? http://jsfiddle.net/zbQLJ/2/ Regards, Garry Taylor On Friday, 16 May 2014 11:37:01 UTC+1, Anam Ansari wrote: I have created Directive , on that i am using ng-class .what i want to do is on click of button i need to chane ng-class of only directive by

[AngularJS] Re: Jasmine - Karma - Controller undefined - Maybe not injected?

2014-05-16 Thread Diego Freitas
Anyone ?! Em quinta-feira, 15 de maio de 2014 00h26min55s UTC-3, Diego Freitas escreveu: Hi there, I'm facing a problem that I really don't know the reason of it ... My controller is undefined ... *karma.config:* files: [ '../contents/js/jquery-1.10.2.js',

[AngularJS] Re: Focus an input added dynamically on mobile safari

2014-05-16 Thread Garry Taylor
A solution is to re-work the layout. Have only one input box with an add button (nice tick or something). When the user types their request and hits the tick it is inserted into the list. This can then keep growing and the CreateMagicList controller should remain functional. It will therefore

[AngularJS] Re: Update $scope.variable value after POST

2014-05-16 Thread Filipe Monteiro
Why do you need your first variable? I couldn't understand. Well, about your error, if $scope.todos is a collection, you should use $watchCollection instead of $watch and be aware that angular just watches its own elements. let us know if this worked for you. Em sexta-feira, 16 de maio de

[AngularJS] Re: Form Validation Not Working For Some Users

2014-05-16 Thread Garry Taylor
Hi Cutey, a solution to this would be to call the validate method when the focus is on the login button.. not the best solution but this would fix the issue. Checkout the following thread for more details : https://github.com/angular/angular.js/issues/1460 Some Password Managers are not

[AngularJS] Re: Jasmine - Karma - Controller undefined - Maybe not injected?

2014-05-16 Thread Garry Taylor
Try the following: expect($scope.hasAlertVisible).toBe(false); Also does the ContactController have something like $scope.hasAlertVisible = false; Regards, Garry Taylor On Thursday, 15 May 2014 04:26:55 UTC+1, Diego Freitas wrote: Hi there, I'm facing a problem that I really

[AngularJS] Re: Help: AngularJS delete(id) REST(CouchDB)

2014-05-16 Thread Filipe Monteiro
Same question? O.o Em quinta-feira, 15 de maio de 2014 16h14min10s UTC-3, Mathias Christensen escreveu: Hello everyone. This is my controller which provides the information from the Couchdb to the front-end view. So far it works to list all the customers. But I wanna make it possible to

[AngularJS] Re: Help: AngularJS delete(id) REST(CouchDB)

2014-05-16 Thread Garry Taylor
I am note sure as I have never used CouchDB but from a little research don't you delete using the the following.. http.delete('http://127.0.0.1:5984/customers/http://127.0.0.1:5984/customers/_all_docs?include_docs=true/' + id).then(... Also from the look of the code the id is never being

[AngularJS] use ui - router to restrict access to landing page?

2014-05-16 Thread Marc B
Hello, In my ui-router I added for each state a data property specifying an access level - either 'anon' or 'user': a state with a value 'anon' should be acessible for any user, a ste with an acess level of 'user' should be accessible for logged-in users. Example:

[AngularJS] Re: use ui - router to restrict access to landing page?

2014-05-16 Thread Garry Taylor
Try the following $scope.$on('$routeChangeStart' There is also a good tutorial here: http://nadeemkhedr.wordpress.com/2013/11/25/how-to-do-authorization-and-role-based-permissions-in-angularjs/ Regards, Garry Taylor On Friday, 16 May 2014 14:57:47 UTC+1, Marc B wrote: Hello, In my

[AngularJS] Re: Learning AngularJS complete step by step guide for beginners.

2014-05-16 Thread Garry Taylor
Nice job.. I will be pointing my junior developers to this resource! -- 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

[AngularJS] Comparing functions in AngularJS based on controller

2014-05-16 Thread Liam Ryan
I have a bit of a head-scratcher. I'm trying to implement an observer service to provide $scope.$watch functionality to services. I add a callback function to an object : function[] map based on the following logic, assuming newCallbackFunction is the callback I'm trying to add

[AngularJS] Problems Monitoring Changes on {{values}} to Trigger Directive manipulations of DOM

2014-05-16 Thread Garry Taylor
Can you post something up on jsfiddle or equivalent. The watch should work but its difficult to see without the full code -- 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] Problems Monitoring Changes on {{values}} to Trigger Directive manipulations of DOM

2014-05-16 Thread Shawn Shaw
Yes, I will do that as soon as I can, probably tonight. -- 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] ngTable custom refresh action? - Update table from service based on user-input?

2014-05-16 Thread Alec Taylor
I have a table showing data from a remote server. There is a numeric input, when the number is changed I want the table to be refreshed (with the numeric input in arg). Here is my current attempt: $scope.$watch(number, function () { console.log(number changed);

[AngularJS] ngTable custom refresh action? - Update table from service based on user-input?

2014-05-16 Thread Garry Taylor
Take the quotes of undefined. Regards, Garry Taylor -- 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: Jasmine - Karma - Controller undefined - Maybe not injected?

2014-05-16 Thread Diego Freitas
I've followed this tutorial: http://tech.pro/tutorial/1515/you-got-http-in-my-angularjs-unit-tests And changed my code (below) I'm testing the service individually but some how is not calling the service. It's not entering in the promise.then(). Do you know why ? TESTS

[AngularJS] Filter data in a table that is not created by the HTML TABLE element, but created with DIV elements.

2014-05-16 Thread Trash Match
I've created a table with DIV elements instead of the HTML table element. ng-repeat will populate the div table just as it would a table table. But filter and sort now won't work. This is how the HTML for the table built with div elements looks: div id=StoresTbl show-filter=true

[AngularJS] Re: Reusable Filters and directives across multiple apps

2014-05-16 Thread _rolandocc_
Yes that is a good approach ! On Sunday, April 21, 2013 10:12:54 PM UTC-6, Ritchie Anesco wrote: Hi guys, I'm fairly new to AngularJS, however read tonnes about it and done heaps of tutorials and really digging the framework. Anyways, the site I am currently building will be using angular

[AngularJS] Re: Jasmine - Karma - Controller undefined - Maybe not injected?

2014-05-16 Thread Garry Taylor
Only thing I can see is that expectGET Should be whenGET Regards, Garry Taylor -- 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: ngTable custom refresh action? - Update table from service based on user-input?

2014-05-16 Thread Jeff Hubbard
In this case, the quotes are correct. `typeof` returns a string, and `typeof undefined` returns undefined. On Friday, May 16, 2014 10:58:22 AM UTC-7, Garry Taylor wrote: Take the quotes of undefined. Regards, Garry Taylor -- You received this message because you are subscribed to the

[AngularJS] Re: ngTable custom refresh action? - Update table from service based on user-input?

2014-05-16 Thread Garry Taylor
Sorry did not see the typeof there :) Would not have been true anyhow... -- 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

[AngularJS] Re: ngTable custom refresh action? - Update table from service based on user-input?

2014-05-16 Thread Garry Taylor
Is there anything in the console logs? -- 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

[AngularJS] Re: Filter data in a table that is not created by the HTML TABLE element, but created with DIV elements.

2014-05-16 Thread Trash Match
I created a Plunker that is filtering a table created with div elements: Plunker: Filter a list with an input fieldhttp://plnkr.co/edit/4C515jYR9p8w5vfQZcHO?p=preview So, I've got something working. Hopefully from this simple example, I can figure out what I'm doing wrong. On Friday, May 16,

Re: [AngularJS] Re: Focus an input added dynamically on mobile safari

2014-05-16 Thread Jeremy Kallman
Good idea but, unfortunately, reworking the layout is not an option. Thanks, Jeremy On Fri, May 16, 2014 at 4:34 AM, Garry Taylor gpltay...@gmail.com wrote: A solution is to re-work the layout. Have only one input box with an add button (nice tick or something). When the user types their

[AngularJS] Re: Plz Help explain binding to methods

2014-05-16 Thread Danny Eck
Aha! figured it out. Updated Plunk http://plnkr.co/edit/unk9hj?p=preview New plunk clarifies/obviates what i learned re: bindings. Watch objects and arrays (javascript things that are passed by reference) so what i was trying to do with array indices or function return values on Ctrl scope