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

2014-02-04 Thread Sander Elias
Tim, Mail me privately do discuss things like my availability and ratings. If you really want to make good use of angular, you should really pick up some JavaScript. [] = an array. An array can be traversed using an index number {} = an object. can be traversed, but not using an index number.

[AngularJS] Re: Why I can't use ngFormController from directive

2014-02-04 Thread Олег Истомин
formElem catch submit event. It was my mistake. Sorry вторник, 4 февраля 2014 г., 12:41:02 UTC+4 пользователь Олег Истомин написал: Yes. Now I use scope (scope[attr.name][error.field].$setValidity(error.type, false);), but it is unbeautiful, I think. More I can't catch submit event if I

[AngularJS] How to set a default HTTP header in a service

2014-02-04 Thread Johannes Zorn
Hi, I implemented an httpInterceptor in the config block of an application that requires access to the $httpProvider to set the default Authorization header. Now I'd like to move this interceptor to a service. I assume it is not possible to access the $httpProvider in a service. Is there

Re: [AngularJS] How to set a default HTTP header in a service

2014-02-04 Thread Matt Goodall
On 4 February 2014 10:33, Johannes Zorn johan...@zorn.in wrote: Hi, I implemented an httpInterceptor in the config block of an application that requires access to the $httpProvider to set the default Authorization header. Now I'd like to move this interceptor to a service. I assume it is not

Re: [AngularJS] How to set a default HTTP header in a service

2014-02-04 Thread Johannes Zorn
Hi Matt, I must have missed this. Thank you! Johannes On Tue, Feb 4, 2014 at 11:48 AM, Matt Goodall matt.good...@gmail.comwrote: On 4 February 2014 10:33, Johannes Zorn johan...@zorn.in wrote: Hi, I implemented an httpInterceptor in the config block of an application that requires

[AngularJS] Re: Question on input type text and ng-model

2014-02-04 Thread Felix Satyaputra
Hi Darren, Thanks for the reply, it's exactly what I'm after. I am trying to parse the input text in my own way. Plus, I don't want to use number due to spinbox control and the fact that I won't be able to provide validation error message for non-numeric input. Looks like directive is the way

[AngularJS] Selection Model / Grid Alernative

2014-02-04 Thread Justin Russell
Hi Everyone, I'm curious to get some feedback on a different approach to working with selections in lists/tables/grids/etc. https://github.com/jtrussell/angular-selection-model Live demos here: http://jtrussell.github.io/angular-selection-model/ Rather than traditional widget-like directives

Re: [AngularJS] Re: multiple matchers

2014-02-04 Thread Dorota Rupniewska
In this simple case I've mentioned, you are right - it could be 'expect(value).toBeGreaterThan(-1)'; but what I was looking for is simply defining custom matchers. I'm new to testing and didn't know I can define my own matcher 2014-01-31 Jeff Hubbard lord2...@gmail.com: While I agree with the

[AngularJS] Re: show and hide compiled directive

2014-02-04 Thread Randy Paries
Vanya, thank you for the help. i do realize the other things you mentioned and that was next. I guess i was trying to solve this a more complex way, but this is great. Keep it simple. One of the things i was looking at was when i created the directive treechild i was thinking of doing something

[AngularJS] How to get a list prepared for downloading files?

2014-02-04 Thread Павел Токаренко
Please help. How to implement analog AngularJS: input type=file id=files name=files[] multiple /output id=list/output script function handleFileSelect(evt) { var files = evt.target.files; // FileList object // files is a FileList of File objects. List some properties. var output =

[AngularJS] Need help with Angular issue

2014-02-04 Thread Andrew Ketner
Here is the basic problem. In a single page angular application. Say you have a page withe 60 fields of text boxes, combo boxes, radio buttons, and check boxes to narrow your search parameters. You enter your criteria, click search. You get a data grid of data. You choose one of the

[AngularJS] Re: View not showing

2014-02-04 Thread Marc B
Ok, found it!! I have an /app.js with the router where I define the application: angular.module(iShareApp, [ngRoute]) .config([$routeProvider, . [code] Then I defined a directive in directive.js: angular.module(iShareApp,[]) .directive(waiting,[$rootScope,... [code] Oops.. here iShareApp

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

2014-02-04 Thread P Stockton
Hi, good to see someone else interested in this! It is workable but it's messy and it's not a workflow, more a worktrickle. First up you to check that you have these versions of sass and compass running on your machine: mac:~ mac$ sass -v Sass 3.3.0.rc.2 (Maptastic Maple) mac:~ mac$ compass

[AngularJS] Re: Need help with Angular issue

2014-02-04 Thread Francesco Rizzi
I know you indicated the state should be preserved service-side, but have you considered storing the values used in the search on the client side in localStorage ? When the angular app page is rendered, you could check if any of those values are available in local storage and pre-fill the

[AngularJS] bug in IE8 - quirks mode

2014-02-04 Thread Surreal
Hi, I made a quick test to check if my app was compatible with IE7+. Weirdly, it works in IE7 but I get this error in IE8 (http://docs.angularjs.org/error/$sce:iequirks): Strict Contextual Escaping does not support Internet Explorer version 9 in quirks mode. You can fix this by adding the

[AngularJS] AngularJS ninja needed

2014-02-04 Thread Kartik Dhar
Hey folks, We're building an apparel store discovery platform coded in AngularJS - and are hiring for part time/full time positions for an AngularJS developer. Contact me if you're interested at cont...@clothzy.com with your resume and Github link. Location is not an issue - remote working is

[AngularJS] Re: bug in IE8 - quirks mode

2014-02-04 Thread Jeff Hubbard
I don't see a DTD on your pasted code. There should be an element above the `html` that has: `!doctype html`. On Tuesday, February 4, 2014 12:20:52 PM UTC-8, Surreal wrote: Hi, I made a quick test to check if my app was compatible with IE7+. Weirdly, it works in IE7 but I get this error in

[AngularJS] Should use jquery with angularjs ??

2014-02-04 Thread biloki
Hi everyone, I have a question very base: should we use jquery in the app that use angularjs ? If not, what should we use as the controller of DOM ? Thank you very much -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this

[AngularJS] Re: Need help with Angular issue

2014-02-04 Thread Erez Lirov
What about encoding the fields as a base-64-encoded json object that you can append to your search URL? This way, filling fields will cause a new URL to be generated that will encode the field values. The URLs will be long, but I'm not sure that would be an issue unless you need to support

[AngularJS] Re: Need help with Angular issue

2014-02-04 Thread Jeff Hubbard
Every version of IE that I am aware of--certainly IE6 thru 10--has the 2083 character limit on the full URL, just FYI. On Tuesday, February 4, 2014 4:07:52 PM UTC-8, Erez Lirov wrote: What about encoding the fields as a base-64-encoded json object that you can append to your search URL?

[AngularJS] Re: Is it possible to create your own injectables for directive link functions and directive controllers.

2014-02-04 Thread Sander Elias
Hi Micahel, It surely is. That's exactly where service/factories are for. If you need to tweak your object model during config, you need a provider. A service is just a object, where angular makes sure it's only instanceid once in your application. a factory is the same, but here you are in

[AngularJS] Re: Should use jquery with angularjs ??

2014-02-04 Thread Johannes Zorn
Hi, you certainly can, but it's not the angular way to do it. Let me quote the FAQ http://docs.angularjs.org/misc/faq: DOM Manipulation Stop trying to use jQuery to modify the DOM in controllers. Really. That includes adding elements, removing elements, retrieving their contents, showing

Re: [AngularJS] Re: Why I can't use ngFormController from directive

2014-02-04 Thread Олег Истомин
It works! Thank you! вторник, 4 февраля 2014 г., 19:59:02 UTC+3 пользователь Kai Groner написал: Hi Олег, The ng-form directive is just an alias for form (because html doesn't allow nesting of form elements). If you use require: 'form' instead of require: 'ngForm', then it will work.,

[AngularJS] Re: Rails asset pipeline and karma test runner

2014-02-04 Thread Sébastien Saunier
Hi Digging up an old topic, but there is a way not to rely on your development server to be running to serve the `application.js`. You need a rake task getting all the files //= required in the application.js with Sprockets and run karma against a config file where you inject those required

[AngularJS] issues with template rending using $compile

2014-02-04 Thread Nick Swenson
Hello all! We have run across an issue template rendering and its sucking the soul out of me (not really, but close). Read on for more! *CONTEXT:* We are building an angular application that loads as a third party service on top of other webpages. We have created custom services/factories