[AngularJS] Re: listening to css3 transition events in angularjs

2014-02-24 Thread Luke Kende
){ //be aware of other event names from other browsers vendor-prefixed console.log(''got a css transition event, e) }) } }) On Tuesday, February 25, 2014 12:18:28 AM UTC-7, Luke Kende wrote: You can create a directive to do this and add it to the body tag if you want just

Re: [AngularJS] Re: Dynamically Adding Directives

2014-02-23 Thread Luke Kende
correct? On Sat, Feb 22, 2014 at 2:27 AM, Luke Kende luke.ke...@gmail.com wrote: If I understand you correctly, I would do this with ng-repeat, since as you add or remove data to the array, it would create new panes (or items, or whatever). pane ng-repeat=pane in panes style=float:left

[AngularJS] Re: Is AngularJS good choice for my project with WCF, SQL Server

2014-02-23 Thread Luke Kende
It's all totally possible. However, you are stepping into a different paradigm with a Single Page App (SPA), especially with angular, and especially coming from .NET. Instead of each page requested having it's final html delivered to the browser by the server based on server-side logic, it's

Re: [AngularJS] Is AngularJS good choice for my project with WCF, SQL Server

2014-02-23 Thread Luke Kende
You asked about developing a web application. When we talk about web apps these days we tend to mean an SPA. Using angular just for javascript functionality and delivering each page from the server can work, but I believe defeats the purpose of it's design. I agree with Mario in terms of

[AngularJS] Re: $http and digest cycles

2014-02-23 Thread Luke Kende
You can turn your two $http requests to resolve in one promise: http://denisonluz.com/blog/index.php/2013/10/06/angularjs-returning-multiple-promises-at-once-with-q-all/ You need the digest cycle on the value of select changing to fire your $watch that fires the $http calls, so I can only see

Re: [AngularJS] Finding a backend to use with angular

2014-02-23 Thread Luke Kende
If you aren't stuck on using Google Application Engine, I'd recommend NodeJs as you can quickly get started and run it as a local web server for building your app. NodeJs is javascript webserver and there are seeds to get started with the two together:

[AngularJS] Re: google-maps

2014-02-23 Thread Luke Kende
http://angular-google-maps.org/ On Sunday, February 23, 2014 10:42:36 PM UTC-7, Archana wrote: Hi. Can anyone suggest me how to include google-map in angular Thanks -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group

[AngularJS] Re: Supporting multiple screen resolutions when developing for mobile devices

2014-02-23 Thread Luke Kende
This is basically a question about making your app responsive. I agree that CSS @media queries are the way to go instead of separate templates and javascript. You may have to modify your templates to meet both resolutions since you only initially developed for one, but overall you will be

[AngularJS] Re: Angularjs Nested Ng-repeat By Number

2014-02-22 Thread Luke Kende
I've done this before with slice() but there was a finite number of item groups and always the same range of 8 items: div ng-repeat=(index, master) in data.slice(0,7)/div div ng-repeat=(index, master) in data.slice(8,15)/div div ng-repeat=(index, master) in data.slice(16,23)/div div

[AngularJS] Re: AngularJs Serialized Json data not displaying in table

2014-02-21 Thread Luke Kende
This example is hard to follow because it skips over key details, like what is serializing the data, is that C#? But it doesn't matter what the back end is... I have to assume that getProductDetails on your service makes a call to the webserver which is returning json, but how is it being

[AngularJS] Re: AngularJS routing issue with Bootstrap

2014-02-21 Thread Luke Kende
Looks like you are using Twitter's Bootstrap JS instead of Angular's version? You need angular's version so it works within the scope of angular, else angular doesn't know about changes made outside of it's scope and you will have lots of issues like this.

[AngularJS] Re: Dynamically Adding Directives

2014-02-21 Thread Luke Kende
If I understand you correctly, I would do this with ng-repeat, since as you add or remove data to the array, it would create new panes (or items, or whatever). pane ng-repeat=pane in panes style=float:left; customer=pane.customer/customer item=item ng-repeat=item in items

[AngularJS] Re: Keeping the state of scope for different session

2014-02-21 Thread Luke Kende
If by refreshing it you mean reloading the page, then you'd need to use cookie or server storage. If you mean when switching views, then you need a service. Which do you mean? On Friday, February 21, 2014 2:57:30 PM UTC-7, Luqman Rom wrote: Hi, I am learning AngularJs right now by making

[AngularJS] Re: table row like a link with ng-href

2014-02-21 Thread Luke Kende
Have you tried ng-click? tr ng-click=goTo(res.id) style=pointer:cursor td{{res.id}}/td td{{res.ragioneSociale}}/td td{{res.indirizzo}}/td td{{res.codiceFiscale}}/td td{{res.tipoSocieta}}/td td{{res.attivita}}/td /tr $scope.goTo = function (id){

Re: [AngularJS] Re: Is it bad practice to assign multiple controllers per route?

2014-02-20 Thread Luke Kende
in the template. On Thu, Feb 20, 2014 at 3:38 AM, Diego Fernandez diego.fernan...@bluebridgeltd.com wrote: I totally agree with Luke Kende. On 20 February 2014 05:38, Luke Kende luke.ke...@gmail.com wrote: I don't think it's bad practice. $scope is setup to be hierarchal and will inherit any parent

[AngularJS] Re: Is it bad practice to assign multiple controllers per route?

2014-02-19 Thread Luke Kende
I don't think it's bad practice. $scope is setup to be hierarchal and will inherit any parent scopes. So even if you provided a controller for the template route, it would just be a parent controller to the ones specified within the template. On Wednesday, February 19, 2014 10:11:08 PM

Re: [AngularJS] Re: Passing variables from one page to another

2014-02-15 Thread Luke Kende
Awesome! Glad I could help. On Sat, Feb 15, 2014 at 12:46 AM, Yonatan Kra kra.yona...@gmail.com wrote: Thanks a lot! You saved a lot of hours of trial and error. My spa works seemlessly now. On Feb 12, 2014 4:46 PM, Luke Kende luke.ke...@gmail.com wrote: I won't claim to be a guru

Re: [AngularJS] Re: Passing variables from one page to another

2014-02-12 Thread Luke Kende
MyService.MyStatus in the otherPage controller, I get OK no matter what was its value in the Inbox page. Is that a glitch in my code? Or is that how it's supposed to be? Thanks On Wed, Feb 12, 2014 at 8:53 AM, Luke Kende luke.ke...@gmail.com wrote: Yes. Use a service. If it's not working for you

Re: [AngularJS] Re: Passing variables from one page to another

2014-02-12 Thread Luke Kende
the differences between factory/value/service/provider/constant - that's my mission on my 3rd week in Angular...) On Wed, Feb 12, 2014 at 3:55 PM, Luke Kende luke.ke...@gmail.com wrote: I wrote my example terribly (the service name should obviously be consistent) but yes, the problem is due

Re: [AngularJS] Re: Reloading an angular view?

2014-02-12 Thread Luke Kende
=number img src={{demo.logo}} / /div /div On Wednesday, February 12, 2014 12:17:22 AM UTC-6, Luke Kende wrote: I don't have enough information to adequately answer your question, but my best guess is that you are new to angular? Are you using routeProvider for your

[AngularJS] Re: AngularJS; Parse Current URL PathName to Pull Out Parameters

2014-02-11 Thread Luke Kende
So... why can't just get it from $routeParams? If there's something non-angular that you need, you can always access the window.location object and parse the path your self. On Tuesday, February 11, 2014 3:54:02 PM UTC-7, Cody Carlson wrote: Hi, I need to be able to pass a URL pathName to

Re: [AngularJS] Resource GET request not reaching server

2014-02-11 Thread Luke Kende
A GET request is fairly easy to verify: 1. You can copy and paste the full url directly into the address bar. 2. If you are on Linux or Mac, you can use cURL (or wget) on the command line and see if it's getting there. 3. Worst case you can use WireShark to inspect network packets. Sounds to

[AngularJS] Re: put parts of the application 'to sleep'

2014-02-11 Thread Luke Kende
This question sounds like you are trying to fix the symptoms instead of the source. A watch doesn't trigger unless something causes it to. Personally, I gained a performance boost when I rethought and recoded the way the way I used angular's built-in directives. For example, I had a ng-class

[AngularJS] Re: Passing variables from one page to another

2014-02-11 Thread Luke Kende
Yes. Use a service. If it's not working for you then you are coding it wrong. My guess is not understanding object inheritance and losing a reference to primitive values My examples are not full blown, but hopefully the details will help you see what you need: function EmailService(){

<    1   2