[AngularJS] Re: Angular JS With Jquery

2015-01-22 Thread Sander Elias
Hi Raj, Short answer: NO. Somewhat longer version: Depends mostly on the JQ-component. Some offer easy integration, some are a large pain to use. If you have done a few, you will find out, that most of the time it's quicker to roll your own version in angular, then it is to use an UI-component

[AngularJS] Re: Best Practice for partial within a partial

2015-01-22 Thread Sander Elias
Hi Brian, Sounds like a sub-feature, put the files in a folder below the main feature. Have a look at John Papa's style-guide , he explains a lot of this stuff in a coherent fasion. Regards Sander -- You received this message because you are s

[AngularJS] Re: $query scope not printed in view

2015-01-22 Thread Sander Elias
Hi CFC, You don't have a problem with json, you have an issue with embedded HTML. For security reasons you can't just put it in your view as is, you need to prepare the html with `$sce.trustAsHtml(article.description)` For more information, read through the documentation

[AngularJS] Re: new user naming convention question: Why only prefix suggested for Directives?

2015-01-22 Thread Sander Elias
Hi Scott, You are right. those are facing the same issues. 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+unsubscr...@googlegroups.com. To

[AngularJS] Angular JS With Jquery

2015-01-22 Thread Rajaraman Soundararajan
Hi Is it good to use Angular JS with jQuery simply because jQiuery has many UI components that Angular doesnt support. Thnaks Raj -- 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,

[AngularJS] Best Practice for partial within a partial

2015-01-22 Thread Brian Clark
Hey All, I was looking for the best practice for putting a partial within a partial. Two specific use cases right now 1. Login/Sign up screen. Want page 90% the same but change the url and the input boxes/login for just the form. 2. Dashboard like app. The left bar would stay there but the rig

[AngularJS] filter json data in AngularJS

2015-01-22 Thread Michel Morel
Hi, I have a mysql database with a column called "date". When I use the following code it returns date is undefined, but yet I have a column called "date" in my database, so my query must not be selecting my json data? $scope.quote = data.filter(function(quote) { return quote.date == y +

[AngularJS] How to post data as json from request payload?

2015-01-22 Thread Lilan Sameera
Here is my code sample, though i set the method as post it will set Request Method to OPTIONS and request payload won't be set. there is no problem with CORS since it is working with chorme plugging such as Postman and Rest Console. i have checked both tools requested to server is request meth

[AngularJS] $query scope not printed in view

2015-01-22 Thread CFC
I have a problem when I try print a json parameter in a view, when I print a query on a view I list appears in JSON but not html. Printed: [{"id":1,"created_at":"2015-01-19T12:31:52Z","title":"Its a new","description":"ksflksdjflskdjflskjdflksjdflksjdlfksjdlf\r\n \r\nkjshfkjsdfn\r\n \r\njdsfksj

[AngularJS] Re: Is this the correct way to use $http.get?

2015-01-22 Thread Steve Husting
Looks like ngRoute needs the files to be hosted on a server. -- 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 g

[AngularJS] new user naming convention question: Why only prefix suggested for Directives?

2015-01-22 Thread Scott Russell
A new user here and wondering why only Directives have a recommendation for usage of a prefix? Would it not be a good idea to use prefixes for filters as well? Thanks in advance -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe fro

[AngularJS] Re: Is this the correct way to use $http.get?

2015-01-22 Thread Steve Husting
When I click on the link, I'm getting this error regarding the partial: XMLHttpRequest cannot load file:///Users/Steve/Documents/AndroidApps/Foundation/foundation5/www/views/gallery_details.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extensi

[AngularJS] Re: Is this the correct way to use $http.get?

2015-01-22 Thread Steve Husting
Thanks, Sander! When I have the code like below, the URL in the browser goes from *file:///Users/Steve/Documents/AndroidApps/Foundation/foundation5/www/index.html#/ *to *file:///gallery_details*. and the web page can't be found. var app = angular.module("app", ['ngRoute']); app.config(['$ro

[AngularJS] Re: Posting form data to an external service - handing the response, round peg, square hold.

2015-01-22 Thread Simon Morley
Yeah unsuccessfully tried XDomainRequest as per: http://hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/ There's some jquery ones available that I'll check out shortly. And, the iframe idea might actually be a winner. Thanks again On Thursday, 22 January 2015 14:13:52 UTC, Sander

Re: [AngularJS] Parsley for validation ?

2015-01-22 Thread Ryan Alberts
Here is what I ended up with for parsley validation: http://ryanalberts.com/797/parsley-validation-with-angularjs/ Hope it's helpful for someone :-) On Friday, January 2, 2015 at 1:44:20 PM UTC-7, Ryan Alberts wrote: > > I am looking at doing a similar approach of integrating ParsleyJS wit

[AngularJS] Re: Posting form data to an external service - handing the response, round peg, square hold.

2015-01-22 Thread Sander Elias
Simon, Well, the lowest available now is XMLHttpRequest , In the (not so) near feature you might be able to use windows.fetch , but that is not there yet, and also will be protected by CORS. There ar

[AngularJS] Re: WCF SOAP WSDL webservice, JSON and AngularJS

2015-01-22 Thread Salman Ullah
Check this out may be it could help you. http://stackoverflow.com/questions/124269/simplest-soap-example On Tuesday, October 14, 2014 at 1:57:57 AM UTC+5, Thiago Allessandrini Soeiro wrote: > > I have a WCF SOAP WSDL webservice with some JSON compatible methods that > understands and returns

[AngularJS] Re: Intent to Implement CommonJS Support

2015-01-22 Thread Daniel Lidström
Your arguments are making perfect sense to me. Paul and Adam, many thanks for sharing your thoughts! On Wednesday, 21 January 2015 23:15:34 UTC+1, Paul Everitt wrote: > > > > On Wednesday, January 21, 2015 at 7:52:11 AM UTC-5, Daniel Lidström wrote: >> >> Hi Adam >> >> May I ask what problems you

[AngularJS] No index.html after opening new browser tab

2015-01-22 Thread lwi
Hello, I have angular application with implemented logging. When user is logged in and wants to open app in new (second) tab following piece of code handle this situation (actually it runs on every state change but case I'm talking about is connected only with opening new tab by logged in user)

[AngularJS] Re: Posting form data to an external service - handing the response, round peg, square hold.

2015-01-22 Thread Simon Morley
HI Sander, We have zero access to the routers from the outside world. Using http resource, I am actually able to authorise the client successfully - the problem is that the request is cancelled. I know it gets to the router since I'm logged in when I hit that end-point. For the short-term I've

[AngularJS] Re: How to perform an ng-include procedurally from JavaScript

2015-01-22 Thread Sander Elias
Hi Luis, Hmm, the question was more on the why you can't because it's whole well possible. And you answered that. To get my facts straight, correct me where I'm wrong: 1. you have an active angular on your page 2. you want to use it to dynamically load templates 3. you can not put an `

[AngularJS] Re: Posting form data to an external service - handing the response, round peg, square hold.

2015-01-22 Thread Sander Elias
Hi Simon, Yes, that's a bit more, but indeed. That might be a solution. However, you can let your server do a simple request to the router on behalf of the client. A full blown proxy might be a bit of overkill. There is this other point. Can you reach the routers logon from the internet, or onl

[AngularJS] Passing resolve result to controller in AngularJS fails

2015-01-22 Thread Siannone
I set up the configuration for my main module in the following way: angular.module('main').config(function($routeProvider, $locationProvider , ConfigProvider) { $routeProvider .when('/home', { templateUrl : ConfigProvider.

[AngularJS] Re: How to perform an ng-include procedurally from JavaScript

2015-01-22 Thread Luis Crespo
Sorry, to answer your question more precisely. You ask: *You can use ng-include to dynamically load templates without an issue? * And the answer is: no, I can't, or I don't know how to do that. That is what I am asking: how to do it :-). On Thursday, January 22, 2015 at 12:10:02 PM UTC+1, San

[AngularJS] Re: How to perform an ng-include procedurally from JavaScript

2015-01-22 Thread Luis Crespo
Because ng-include is declarative, and I need to perform the include procedurally, because the decision to load a given piece of html is delayed until runtime. For example, this does not work: $(' ').appendTo(someExistingElement); On Thursday, January 22, 2015 at 12:10:02 PM UTC+1, Sander Elia

[AngularJS] Re: How to perform an ng-include procedurally from JavaScript

2015-01-22 Thread Sander Elias
Hi Luis, You can use ng-include to dynamically load templates without an issue? So why can't you just use that? 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

[AngularJS] Re: Posting form data to an external service - handing the response, round peg, square hold.

2015-01-22 Thread Simon Morley
Hi Almost certain it's cors... We have to support a number of routers - most still have an 80's interface to authorise users. They're unlikely to change and even if they did, the volume on old firmwares would still be too high. We have our own routers with JSON interface which makes things easy

[AngularJS] How to perform an ng-include procedurally from JavaScript

2015-01-22 Thread Luis Crespo
Hello, I am using an in-house framework that is responsible of calling back-end services and loading pages dynamically using jQuery.load. I want to keep using this framework while at the same time be able to use Angular in the pages being loaded by this framework. I have found that after loadi

[AngularJS] Re: Safari on iOS and OSX CORS Problem.

2015-01-22 Thread Jörg Zimmer
Hi Rob, yes, unfortunately this isn't working any better... Am Mittwoch, 21. Januar 2015 18:50:40 UTC+1 schrieb Rob Koberg: > > Spoke too soon. It is now working in my desktop with safari emulating the > iOS8.1 user agent on the server, but not with a real ipad... > -- You received this mess