[AngularJS] Re: $http() vs $.ajax() different response

2014-10-01 Thread Anton Trapp
Hi! Check the request (headers like 'XMLHttpRequest' and check the log on the backend). I had some troubles that my Rails backend (especially the auth. system) did not notice the Ajax calls until I set angularApp.config(['$httpProvider', ($httpProvider) -> $httpProvider.defaults.headers.com

[AngularJS] Re: $http() vs $.ajax() different response

2014-10-01 Thread Sander Elias
Hi Korneliusz, Did you examine the requests in the developers tools? jQuery ajax does some not so standard things. Probably a difference in headers. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and

[AngularJS] Re: ng-repeat do not update after database insert

2014-10-01 Thread Sander Elias
Hi Eliran, Did you check if the server did the update already? Some servers do take some time to inject new stuff into their database, and you might get results back not containing your new user yet. Regards Sander -- You received this message because you are subscribed to the Google Groups

[AngularJS] Re: How to optimize this code block?

2014-10-01 Thread Sander Elias
Hi Evgeny, You can use a ngRepeat for this, something line this: {{filter.name}} 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: State stack in angular - anyone ever try this?

2014-10-01 Thread Sander Elias
Hi Eric, You might be interested in this: https://www.youtube.com/watch?v=3ZLlRQJp5Fg Not angular, but on subject! -- 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] get Date from Table (HTML) and set in Input

2014-10-01 Thread Leonan Luppi
Hello guys, So I want to get my date that load in HTML table, and when the user click on the row automatically data appears in the HTML input (text). Someone know how can I make this process? I get my data from my server but I don't set the field when clicked. Example: Html Table: ---

[AngularJS] $error object undefined for form validation with Angular Wizard

2014-10-01 Thread Shawn Shaw
Hello, I'm using the following angular wizard for the registration on my page. https://github.com/mgonto/angular-wizard However, nothing I seem to do allows for validation before going to the next page. I've posted asking for help from the owners of the code, but no one is responding. http

Re: [AngularJS] Re: How to reapply directive when scope is changed in AngularJS

2014-10-01 Thread Thiago Gonçalves
Solved, thanks! Em quarta-feira, 1 de outubro de 2014 01h05min16s UTC-3, Jason Villalon escreveu: > > Hi, > > I figured out the problem. turns out that the problem is in the jquery > plugin. > > http://jsfiddle.net/re8jX/38/ > > i moved the plugin declaration at the top of js. then i commented >

[AngularJS] Re: $http to .NET Web API - Either Getting 400 (Bad Request) or NULL POST Action Method Parameter

2014-10-01 Thread Earl Damron
I found a blog post that solved my issue: http://victorblog.com/2012/12/20/make-angularjs-http-service-behave-like-jquery-ajax/ Thanks! On Wednesday, October 1, 2014 10:37:16 AM UTC-7, Earl Damron wrote: > > Here’s a brief (as I can make it) description of my problem, along with > all relevant

[AngularJS] Re: Psomas is hiring. Web Dev needed asap

2014-10-01 Thread webmandman
And yes, I did post this same message in the Ember JS community. I have nothing against either framework. It would be awesome to get anyone with either experience. I do currently have two small apps in AngularJS. they are not in production yet. -- You received this message because you are su

[AngularJS] Re: Psomas is hiring. Web Dev needed asap

2014-10-01 Thread webmandman
Full time position in Orange County California. -- 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

[AngularJS] Psomas is hiring. Web Dev needed asap

2014-10-01 Thread webmandman
What up fellow developers. https://psomas.applicantpro.com/jobs/143060.html The position just a couple weeks ago required Coldfusion experience, but I finally convinced my boss to NOT make it a requirement. So now any server-side scripting language experience is welcomed. I can work on the c

[AngularJS] Re: Searching for angularjs job?

2014-10-01 Thread webmandman
Psomas in Orange County California is hiring a Web Developer. Would love to get an experienced angularjs dev. https://psomas.applicantpro.com/jobs/143060.html -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and s

Re: [AngularJS] AngularJS Cache Busting for Scripts and CSS

2014-10-01 Thread Eric Eslinger
I'm actually running into that top-level issue myself lately. My system uses websockets to push realtime updates out to the user, and the attached clients all ping every 30 seconds with a "here I am" for the purposes of having user-presence indicators on the site. I was thinking I could respond to

[AngularJS] $http to .NET Web API - Either Getting 400 (Bad Request) or NULL POST Action Method Parameter

2014-10-01 Thread Earl Damron
Here’s a brief (as I can make it) description of my problem, along with all relevant code. (sorry for the double-spacing...pasting from a very long email, and can't seem to avoid it) I have a .NET Web API, and an AngularJS front end. I have a very simple POST method which accepts a parame

Re: [AngularJS] AngularJS Cache Busting for Scripts and CSS

2014-10-01 Thread Rob Koberg
I was following this thread for what I think is the same issue Mark Volkman mentions. If the user never fully reloads the the HTML page none of the changes would come down. I was thinking server side requests would need to send down an app version. If the version sent from the server does not match

Re: [AngularJS] PUT and DELETE requests are not sent.

2014-10-01 Thread Eric Eslinger
in your screenshot it certainly looks like the response headers have the right CORS values too. I'm stumped - I do $http put and delete all the time, with no other changes. e On Wed, Oct 1, 2014 at 9:28 AM, Cody Scott wrote: > I don't think it is a CORS issues as POST requests work, you can see

Re: [AngularJS] PUT and DELETE requests are not sent.

2014-10-01 Thread Cody Scott
I don't think it is a CORS issues as POST requests work, you can see in the image, what the response contains. Am I missing something that is special for PUT and DELETE? On Wednesday, 1 October 2014 12:23:24 UTC-4, Eric Eslinger wrote: > > This sounds like a CORS issue. Have you looked at the co

[AngularJS] Re: How to stop $watchCollection from getting called on initialization?

2014-10-01 Thread David Barker
The solution when using $watchCollection is to use either underscore, lodash or lazy js to do the comparison _.isEqual(var1, var2). Do your own object inspection or use angulat.equals(var1, var2) On Monday, 16 December 2013 11:47:01 UTC, Martijn Vos wrote: > > > My app starts with doing an Ajax

Re: [AngularJS] PUT and DELETE requests are not sent.

2014-10-01 Thread Eric Eslinger
This sounds like a CORS issue. Have you looked at the console? I think angular will complain when the options preflight response doesn't have the right CORS headers, and then will just not issue the command. Maybe your backend server isn't putting those headers on the puts and deletes? e On Wed,

[AngularJS] PUT and DELETE requests are not sent.

2014-10-01 Thread Cody Scott
When I try to $http.put or $http.delete a OPTIONS request is sent and receives a 200 response but the PUT or DELETE request is not sent. This happens in Firefox and Chrome. Here is an image of the Network tab from Firefox http://i.imgur.com/Ol14L10.png POST works fine. app.factory('Objects', [

Re: [AngularJS] AngularJS Cache Busting for Scripts and CSS

2014-10-01 Thread Eric Eslinger
for me, i use gulp-angular-templatecache, which shoves all my partials into a big JS file so i can pre-load all the templates at load time. That resultant templates.js file gets shoved through the same gulp-rev plugin, so it ends up with an md5-based cache busting filename. e On Wed, Oct 1, 2014

Re: [AngularJS] AngularJS Cache Busting for Scripts and CSS

2014-10-01 Thread Daniel Lidström
Actually, even the html partials are cached correctly by IIS (not IIS express mind you). From what I can tell it all works fine.— Daniel On Wed, Oct 1, 2014 at 5:23 PM, Mark Volkmann wrote: > I see how this prevents issues with CSS and JavaScript being cached, but > don't you still have an issu

Re: [AngularJS] AngularJS Cache Busting for Scripts and CSS

2014-10-01 Thread Mark Volkmann
I see how this prevents issues with CSS and JavaScript being cached, but don't you still have an issue with HTML files being cached? On Wed, Oct 1, 2014 at 8:29 AM, Eric Eslinger wrote: > Yeah, I do all my cache busting work with gulp, similar to grunt. In > production, my main.css and main.js b

Re: [AngularJS] Is it a bad style to use controllers' 'prototype' inheritance (please add this info to docs)

2014-10-01 Thread Jens Melgaard
Use Composite Reuse Principle instead: Create a Service that does the work, share that service. On Wednesday, October 1, 2014 12:07:27 PM UTC+2, Maryan Bahnyuk wrote: > > Dear Witold > > On Wednesday, October 1, 2014 10:40:55 AM UTC+3, Witold Szczerba wrote: > >> From OO perspective, it is a bad

[AngularJS] Re: AngularJS Cache Busting for Scripts and CSS

2014-10-01 Thread Daniel Lidström
I'm using IIS and it will handle cache busting for me. As long as I serve my scripts as files (i.e. no magic) IIS will send along an ETag. This is respected by modern browsers and acts as a cache buster. On Tuesday, September 30, 2014 2:32:11 PM UTC+2, Rajaram wrote: > > I am developing AngularJ

[AngularJS] Best practice for ngResource

2014-10-01 Thread Olivier Leplus
Hi, I am using ngResource for API calls. There are 2 approaches in our team and I would like to know which one is the best : - First way service.js (function() { 'use strict' angular.module('felix') .factory('ConversationService', ConversationService); ConversationService.$inje

Re: [AngularJS] AngularJS Cache Busting for Scripts and CSS

2014-10-01 Thread Eric Eslinger
Yeah, I do all my cache busting work with gulp, similar to grunt. In production, my main.css and main.js both get a hash string injected into their filename based on their contents, so main-149af3d.css or whatever. I think I use gulp-rev for that. Gulp-inject is configured to modify index.html to r

[AngularJS] $http() vs $.ajax() different response

2014-10-01 Thread korneliusz wilgocki
Hi I have code in JQuery $.ajax({ method: 'DELETE', url: some_url, data: data }); and in angular var $query = $http({ method: 'DELETE url: some_url, data: data }); The response of this two request are different. In first method when is an error i get error message return

[AngularJS] Re: ng-repeat do not update after database insert

2014-10-01 Thread Muhammad Umar Farooq
yes i am facing this issue too. i like to get the answer too. On Wednesday, October 1, 2014 3:50:59 PM UTC+5, Eliran Cohen wrote: > > Hello. > I have no idea why my ng-repeat do not update after I insert a new record > to my database without refreshing the page. > > my template file: > > > הוספ

[AngularJS] ng-repeat do not update after database insert

2014-10-01 Thread Eliran Cohen
Hello. I have no idea why my ng-repeat do not update after I insert a new record to my database without refreshing the page. my template file: הוספת איש חדש http://www.huffmancode.com/img/hardik.jpg"; style="width: 100px;height:100px ;">

Re: [AngularJS] Is it a bad style to use controllers' 'prototype' inheritance (please add this info to docs)

2014-10-01 Thread Maryan Bahnyuk
Dear Witold On Wednesday, October 1, 2014 10:40:55 AM UTC+3, Witold Szczerba wrote: > From OO perspective, it is a bad idea to use inheritance for code reuse > IMHO it's much better then just copying the same code from one controller to another. And inheritance in this case allows not to duplic

[AngularJS] Re: ng-include passing parameters to templates

2014-10-01 Thread Andrew Pashkin
+1 - seems like ngInit fits well for that purpose (and works too). On Thursday, January 16, 2014 4:36:52 AM UTC+4, Michael Hopper wrote: > > Why not just use ng-init? For example: > > > > > On Tuesday, December 17, 2013 11:54:08 AM UTC-5, Denis Pshenov wrote: >> >> Take a look here for a simpl

[AngularJS] Re: How to optimize this code block?

2014-10-01 Thread Evgeny Nepomnyashchiy
Sorry, there are mistakes, here is a fix: All Type A Type B On Wednesday, October 1, 2014 11:49:21 AM UTC+2, Evgeny Nepomnyashchiy wrote: > > Hi guys, > > I have HTML code: > > > > All > > > Type A > > > Type B > > > > > is it possi

[AngularJS] How to optimize this code block?

2014-10-01 Thread Evgeny Nepomnyashchiy
Hi guys, I have HTML code: All Type A Type B is it possible to describe array of types for filtering in controller (in JS) like this? var typeFilterButtons = [ {name: "All", type:null}, {name: "Type A", type:'typeA'}, {name: "Type B", type:'typeB'} ]; Do

[AngularJS] Access to $event.target in directive

2014-10-01 Thread korneliusz wilgocki
Hi How can i get to $event.traget in custom directive? HTML directive code: {[{ child.name }]} JS directive code: app.directive('child', function($compile, GroupFactory){ return { restrict: 'E', replace: true, scope: { child: '=' }, templateUrl: '/bundles/bpocof/angular/scripts/templ

[AngularJS] Re: State stack in angular - anyone ever try this?

2014-10-01 Thread Stephen Friedrich
Sounds similar to the "Previous States" in a project I just learned about (on Stackoverflow): http://christopherthielen.github.io/ui-router-extras/#/home On Tuesday, September 30, 2014 10:57:44 PM UTC+2, Eric Eslinger wrote: > > Hey angular peeps. I am thinking that I want to build something tha

[AngularJS] Grouped $resource Requests

2014-10-01 Thread Jim Drury
The issue I was facing concerned multiple calls to the api before the api had chance to get cached. After a short follie in the IRC last night the solution turned out to be changing the service to a factory and storing the request in a cache object then on the second hit looking to see if the $

[AngularJS] Grouped $resource Requests

2014-10-01 Thread Diogo Bento Correia
I'm going to assume you are accessing the same resource n times. Say you are trying to access the following resource in your api: /api/v1/resource-name/:id If you want for $resource service to store the request and use the same promise for all subsequent requests to the same resource, you need

Re: [AngularJS] Is it a bad style to use controllers' 'prototype' inheritance (please add this info to docs)

2014-10-01 Thread Witold Szczerba
>From OO perspective, it is a bad idea to use inheritance for code reuse. It makes code hard to reason, because there are things you call - coming from nowhere, I mean coming from some inheritance chain which is only known to person writing the code. Also, it is a static linking, so you cannot mock

[AngularJS] Is it a bad style to use controllers' 'prototype' inheritance (please add this info to docs)

2014-10-01 Thread Maryan Bahnyuk
Hello. I have two controllers with some similar functions/methods. So I think that it should be a good idea to use an abstract controller, move these similar functions/methods to an abstract controller and to inherit these functions/methods in current two controllers. I.e. I'd like to do som