[AngularJS] get another variable like action in router's resolve object

2014-02-25 Thread Pushpendra Kumar
Hello, I have footer section which contains almost same except links code for twenty views. Now I want to use the same html for all views by replacing create, show, update, list links for specific view. Please suggest me how can i get hash of my mo

Re: [AngularJS] function in controller dosen't work

2014-02-25 Thread Ricardson Albuquerque
Hi Sander, i think Pawel forgot to declare MatchController in customtemplate.html, here in my solution, i put it and works fine. advantage..., the scope of the father should not be inherited to the child? Ricardson Albuquerque On Wed, Feb 26, 2014 at 12:55 AM, Sander Elias wrote: > Hi Pawel, >

Re: [AngularJS] function in controller dosen't work

2014-02-25 Thread Sander Elias
Hi Pawel, Ok, I must have a day off, I see your solution working, but I don't get it. Where is the MatchController linked to the template? Have looked over the code, reread the typeahead docs and took a shallow code-read of ui-typeahead. Is there some magic in ui-typeahead that pulls this in? I

[AngularJS] Re: Controllers being loaded multiple times. In Chrome JS console I see strange VM{ number }.js loading. Any ideas what they are?

2014-02-25 Thread Andrew Headrick
I have discovered that JQuery has started re-downloading all my js files multiple times. This is new behavior and I'll have to figure out why this is happening. JQuery is required for ng-grid and ui-select2 among other components. -Andrew On Tuesday, February 25, 2014 1:52:18 PM UTC-8, Andrew

[AngularJS] Re: How to check if fireBase's $child() returned an object?

2014-02-25 Thread Marc B
Hmmm looks like I can't access any of the propertyvalues of the existing object... I see a key 'email' with value 'testu...@testmail.nl' exists on the returned value for ref.$child(). But item.email returns undefined... What is this with FireBase objects that they cannot be changed or read? --

Re: [AngularJS] Looking for API-only CMS

2014-02-25 Thread Matt Calthrop
Thanks Rafa, appreciate the reply. Currently I'm not looking for ecommerce capabilities - unless of course the product is strong on content management as well. As feedback for your friend, I think it would be really useful to have more information on the website describing what the product does a

[AngularJS] How to check if fireBase's $child() returned an object?

2014-02-25 Thread Marc B
Hello, I have a FireBase location with a few items, and ref is a FB reference to that location. I want to retrieve an item using ref.$child(name) where 'name' is the key of an item in the FBlocation. If the item exists in the FB location, FB returns the item like this email "testus...@testema

[AngularJS] Controllers being loaded multiple times. In Chrome JS console I see strange VM{ number }.js loading. Any ideas what they are?

2014-02-25 Thread Andrew Headrick
Hello, I see my controllers loading multiple times. If I add a console.log line at the bottom of the controller, i.e. console.log("controller loading..."); In the Chrome js console I will see controller loading...myJsFile.js controller loading...VM1234.js controller loading...

Re: [AngularJS] Looking for API-only CMS

2014-02-25 Thread Rafael Nami
http://ongoworks.com/ It's an open initiative from a friend of mine. I didn't dig into very much, but it seems to use Meteor + Mongo + Coffeescript. Cheers, Rafa 2014-02-26 10:36 GMT+13:00 Matt Calthrop : > Thanks for your reply Jonathan. > > I don't think it is what I'm looking for, but I'd b

[AngularJS] Re: {{new Date() | date:'yyyy-MM-dd HH:mm:ss Z'}} errors

2014-02-25 Thread Marc B
Ok, Read it. Thanks! See http://docs.angularjs.org/guide/expression > > -- 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 p

[AngularJS] Re: {{new Date() | date:'yyyy-MM-dd HH:mm:ss Z'}} errors

2014-02-25 Thread Lars Christian Jensen
On Tuesday, February 25, 2014 8:36:43 PM UTC+1, Marc B wrote: > > Hello, > > I want to display the current time. So I use the date filter on a Date > instance: > > {{new Date() | date:'-MM-dd HH:mm:ss Z'}} > Hi, 'new Date()' is not a valid Angular expression. Angular expressions may look

Re: [AngularJS] Looking for API-only CMS

2014-02-25 Thread Matt Calthrop
Thanks for your reply Jonathan. I don't think it is what I'm looking for, but I'd be interested to see what you've done anyway... so let me know once it's up on github! cheers Matt On 25 February 2014 19:58, Jonathan El-Bizri wrote: > Not entirely API-only, but I've created a service that w

Re: [AngularJS] function in controller dosen't work

2014-02-25 Thread Ricardson Albuquerque
Thanks Pawel, I checked your plnkr, and put the ng-controller math in my item template and it works ! I ll study more about scopes. Ricardson Albuquerque On Tue, Feb 25, 2014 at 4:41 PM, Pawel Kozlowski < pkozlowski.opensou...@gmail.com> wrote: > HI! > > Not 100% sure how you want it to work b

Re: [AngularJS] Looking for API-only CMS

2014-02-25 Thread Jonathan El-Bizri
Not entirely API-only, but I've created a service that works with the Wordpress backend to do all of that. I'm going to push what I have to github in a couple of days. Would this be useful to you? Jonathan Jonathan - Jonathan El-Bizri 415.830.5839 - On T

Re: [AngularJS] function in controller dosen't work

2014-02-25 Thread Pawel Kozlowski
HI! Not 100% sure how you want it to work but this plunk might give you some ideas: http://plnkr.co/edit/yjd39fAiMNcOiOfXYtkZ?p=preview The main problem was scoping - item's template doesn't have the same scope as your page. And, BTW, you don't need to include jQuery and Bootstrap's JavaScript!

[AngularJS] {{new Date() | date:'yyyy-MM-dd HH:mm:ss Z'}} errors

2014-02-25 Thread Marc B
Hello, I want to display the current time. So I use the date filter on a Date instance: {{new Date() | date:'-MM-dd HH:mm:ss Z'}} But this gives me as output {{new Date() | date:'-MM-dd HH:mm:ss Z'}} FireBug console shows: Error: [$parse:syntax] Syntax Error: Token 'Date' is an u

[AngularJS] function in controller dosen't work

2014-02-25 Thread Ricardson Albuquerque
Hi all, I'm new on angular and sorry about my bad english. I have a plnkr example with my problem here: http://plnkr.co/edit/9NuMypVU0g2lgMrjoBdK?p=preview you can see that I have a function "getCatName" in searchCtrl, but it never trigged. in customtemplate.html you can find the caller. becau

[AngularJS] Looking for API-only CMS

2014-02-25 Thread Matt Calthrop
Hi all I'm going to be using AngularJS to implement a new website that has the following basic requirements of a CMS: - multiple pages - ability to specify page hierarchy - blog posts - other types of content, eg, news, events etc - Disqus comments allowed on blog posts (I'm sure

[AngularJS] Re: Define predicate in ng-repeat

2014-02-25 Thread Sander Elias
Hi Paul, Your fiddle isn't running at all, it seems to miss some some stuff. I think you should watch this videofrom John Lindquist, that will explain it better then I can ;) Regards Sander -- You received this message because you are subscribed t

[AngularJS] Re: Define predicate in ng-repeat

2014-02-25 Thread Paul Metral
http://jsfiddle.net/5Q39J/ js = controller, html = view thank you for your help ;) Le mardi 25 février 2014 17:35:20 UTC+1, Sander Elias a écrit : > > Paul, > > Can you put your problem inside a plunk/fiddle? I will take a look at it! > > Regards > Sander > -- You received this message because

[AngularJS] Re: radio button with multiple fields

2014-02-25 Thread Kamal
Kumar, use same name attribute for both the radio radio button tags that prevents it from selecting both at a time. Have update the plnkr for the same. http://plnkr.co/edit/Bc4z9mHPlHOctnNBlQGP?p=preview On Tuesday, 25 February 2014 18:15:05 UTC+5:30, Pushpendra Kumar wrote: > > Thanks Kamal for

[AngularJS] Re: Define predicate in ng-repeat

2014-02-25 Thread Sander Elias
Paul, Can you put your problem inside a plunk/fiddle? I will take a look at it! 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...

[AngularJS] Re: Define predicate in ng-repeat

2014-02-25 Thread Paul Metral
Hi Sander, thank you for your answer. I'm not sure what I'm supposed to do, I used the code you just send, but no changes. Should I do something else ? Le mardi 25 février 2014 17:22:18 UTC+1, Sander Elias a écrit : > > Hi Paul, > > ng-repeat creates new scopes, your click function updates that

[AngularJS] Re: Protractor Selenium IDE And Easy e2e Tests

2014-02-25 Thread Ethan Winters
How has this been working for you? Obviously a huge departure from Protractor style tests. -- 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...@goog

[AngularJS] Re: Define predicate in ng-repeat

2014-02-25 Thread Sander Elias
Hi Paul, ng-repeat creates new scopes, your click function updates that scope, not the parent scope where you probably expect it. the easy solution, make sure there is an dot in your scope vars, like: http://ref.th/)">{{th}} Regards Sander -- You received this message because you are subsc

[AngularJS] Re: Accept header in GET / POST requests

2014-02-25 Thread Anders Sørensen
On Monday, February 24, 2014 9:03:36 PM UTC+1, Vinod Jayendra wrote: > > I want to set the Accept header in my GET / POST requests for the > hyperlinks generated through AngularJS, it seem to be not working. Please > let me know of any pointers > When setting headers through $httpProvider.defau

Re: [AngularJS] Re: DatePicker inn AngularJs, I am implementing Datepicker using Angularjs but every time fails. because of not loading the file . Can anybody give example for this as soon as possible

2014-02-25 Thread Martin Alix
This works fine: http://plnkr.co/edit/9DvEv21JBapOhkPKFwr7?p=preview On Monday, February 24, 2014 10:37:19 AM UTC-5, Getulio Romão Campos Junior wrote: > > I couldn´t manage to make it accepting the date in the format "dd/MM/" > when typing the date instead of selecting it. Has anyone figur

[AngularJS] Define predicate in ng-repeat

2014-02-25 Thread Paul Metral
Hi all, I have a problem. I have a table which can have different number of columns, so i did a ng-repeat for th : {{th}} and after i have this : but it doesn't work... but if i do, for TH : intitule (no ng-repeat), it works. (Same problem with filters by the way) What is the problem ???

[AngularJS] Re: Wijmo dialog with Angular?

2014-02-25 Thread Sander Elias
Hi Michael, If I had known you already did extended research on this, I would have reacted differently. Or not at all, as I do not have an answer that goes deeper was what you have found already. Apparently the wijmo team itself, doesn't know how to use their own components using angular. I'm a

[AngularJS] Re: Wijmo dialog with Angular?

2014-02-25 Thread Michael Hipp
On Tuesday, February 25, 2014 7:31:41 AM UTC-6, Sander Elias wrote: > > Hi Michael. > > Google is your > friend! > > especially this one!

[AngularJS] Re: Wijmo dialog with Angular?

2014-02-25 Thread Sander Elias
Hi Michael. Google is your friend! especially this one! -- You received this message because you are subscr

[AngularJS] Re: radio button with multiple fields

2014-02-25 Thread Sander Elias
Hi Pushpendra, Have a look on how HTML radio buttons actually work! Angular depends on HTML/browser behaviour, for stuff like this. If something doesn't work in plain HTML, it also will not work in Angular. Here is a quick tutorial on how to use radio-

[AngularJS] Wijmo dialog with Angular?

2014-02-25 Thread Michael Hipp
Has anyone used wijdialog with AngularJS? Could you share a few snippets from your markup and controller to show how it is done? Thanks. Michael -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving ema

[AngularJS] Re: radio button with multiple fields

2014-02-25 Thread Pushpendra Kumar
Thanks Kamal for replying. But in this updated plnkr you see that I can select both radio buttons. On Tuesday, 25 February 2014 17:57:21 UTC+5:30, Kamal wrote: > > Kumar, > > Please find the updated plnkr > http://plnkr.co/edit/Bc4z9mHPlHOctnNBlQGP?p=preview > > It does not select the radio but

[AngularJS] Re: ng-grid - how to change the sort order programatically ?

2014-02-25 Thread Tamlyn Rhodes
Actually, my problem has been solved. Turned out I was using the wrong key for the fields in sortInfo. -- 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+uns

[AngularJS] Re: radio button with multiple fields

2014-02-25 Thread Kamal
Kumar, Please find the updated plnkr http://plnkr.co/edit/Bc4z9mHPlHOctnNBlQGP?p=preview It does not select the radio button on click, I dint see a way at the movement, i think you can do it by adding an ng-click and select the radio. Hope it's useful, Kamal On Tuesday, 25 February 2014 17:

[AngularJS] radio button with multiple fields

2014-02-25 Thread Pushpendra Kumar
Hello All, I am using radio button with multiple fields and I want the values of all fields on radio button selection. Also I want that on change of any field within the area of that radio should be selected. Please go through the follo

[AngularJS] Re: ng-grid - how to change the sort order programatically ?

2014-02-25 Thread Justin Walsh
Hi Greg, In your plunkr, you have: > useExternalSorting: true Was this your intention? Documentation from http://angular-ui.github.io/ng-grid/: useExternalSorting Prevents the internal sorting from executing. The sortInfo object will be updated with the sorting information so you can handle

[AngularJS] Re: ng-grid - how to change the sort order programatically ?

2014-02-25 Thread Tamlyn Rhodes
This looks like a bug to me. Anybody found a workaround? -- 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: Can You Make A Pay To Publish Content Website With Angular JS

2014-02-25 Thread Sander Elias
Hi Charles, Yes you can. Still, with something like that you really need to take care of SEO, and you will have to take that in consideration during the build. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from th

[AngularJS] Can You Make A Pay To Publish Content Website With Angular JS

2014-02-25 Thread Charles Wilmott
Hi Can You Make A Pay To Publish Content Website With Angular JS and Pay Pal? Many Thanks for your help Charles -- 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 ang

Re: [AngularJS] Re: directive not accessing elements generated by ng-repeat

2014-02-25 Thread Sander Elias
Hi Jake, Found your question :) element.find() only looks for elements, if you really want/need to do it this way, include jQuery. However, I think this the backward way of doing this! Let me explain a bit what I mean. I'll make a step wise description. 1. you have an array in your code.

Re: [AngularJS] Re: Using same object for two different dom elements after fetching from the database.

2014-02-25 Thread Luke Kende
Nope. Each of us programs a little differently. Personally, I'd probably transform the data before sending to storage so that each todo is a single object that references the lists it belongs to. That way upon retrieving them you just rebuild your lists' arrays pointing to a single object that s

[AngularJS] Re: Using same object for two different dom elements after fetching from the database.

2014-02-25 Thread Sander Elias
Hi Martin, Simplest way, put an ID on every item. Your lists then become pointers to id’s. Hmm, sounds more difficult than it is. var itemList1 = [];var itemList2 = []; var itemStorage = {}; item = {id:1, bla:blabla...} itemStorage[item.id]=item // and so on! Does that get you far enough?

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

2014-02-25 Thread Sander Elias
Jake, Euhm, can you point me to the question again? ;) 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 pos

[AngularJS] Re: Using same object for two different dom elements after fetching from the database.

2014-02-25 Thread Martin Doktár
Hi! Thanks for your answers! I was guessing this was happening. Any tips on how I could manage this when retrieving the object? There are no "best practises" for this? Regards, Martin -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscr

[AngularJS] How to mock out dependent modules

2014-02-25 Thread Rizwan Sharif
Lets say i have an angular module defined as var app = angular.module('app',[dependenceny1Module,dependenceny2Module,dependenceny3Module..]) where app is a module which depends on bulk of other modules. Now for unit testing i can mock the module using mock('app') but i have to create d