[AngularJS] Re: call controller function from inside the directive

2014-04-03 Thread lucian enache
That makes totally sense. thanks for the quick reply, but what I am trying to understand is when I have to save the rating (on user click). Which is the way to proceed: 1. inject a service inside the directive and call the service.post directly ? 2. pass the values to the controller, maybe do

[AngularJS] Re: call controller function from inside the directive

2014-04-03 Thread lucian enache
That makes totally sense. thanks for the quick reply, but what I am trying to understand is when I have to save the rating (on user click). Which is the way to proceed: 1. inject a service inside the directive and call the service.post directly ? 2. pass the values to the controller, maybe do

[AngularJS] Re: how to iterate on this data by directive

2014-04-03 Thread Rakesh Makam
i am getting a error on the plnkr link error : '503 Service Unavailable' On Thursday, April 3, 2014 3:34:35 AM UTC+5:30, phil pastorek wrote: I'm not sure we follow what you're asking to do Rakesh, i fed your json into jsoneditoronline.org and things look consistent to me as far as what

[AngularJS] how to iterate on this data

2014-04-03 Thread Rakesh Makam
Hi How to iterate on this data, -- 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 email to

[AngularJS] Re: call controller function from inside the directive

2014-04-03 Thread Sander Elias
Hi Lucian, 1 is possible, but my preference would go to 2. Did you look at the plunk I made up for you? It clearly shows how the get the rating value in the controller! There are several ways to solve your problem, the easiest is just watching the scope variable where the rating is. another

[AngularJS] Re: how to iterate on this data

2014-04-03 Thread Sander Elias
Hi Rakesh, Why do you post this 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 post to

[AngularJS] Re: how to iterate on this data

2014-04-03 Thread Rakesh Makam
Hi Sander Elias i did not got solution for that so i posted it again. On Thursday, April 3, 2014 2:38:58 PM UTC+5:30, Sander Elias wrote: Hi Rakesh, Why do you post this question again? Regards Sander -- You received this message because you are subscribed to the Google Groups

[AngularJS] Protecting firebase data from anonymous callbacks

2014-04-03 Thread Michał Tara
Hello everyone :) It's my first post in this group and I'm a beginner in programming but thanks to simplicity of firebase i was able to nearly finish my internet shop that's selling computer game cd-keys and sends them automatically. I've done it 99% with angular and firebase, my only backend

[AngularJS] Re: Problem in getting data from server in angularjs

2014-04-03 Thread Ravi Ranjan
Hi Sander, Is there any api in angularjs to send the request again to the server with data(which was submitted in previous request) while reloading the page or browser refresh ? It will be great if you can provide me sample code for the same. Thanks Ravi On Tuesday, 1 April 2014 16:54:13

Re: [AngularJS] Re: call controller function from inside the directive

2014-04-03 Thread Lucian Enache
I am getting the example with the callback very well. But i still strugle to understand on how can I make use of $watch to trigger the console.log inside the controller Sent from my iPhone On 03/apr/2014, at 11:06, Sander Elias sanderel...@gmail.com wrote: Hi Lucian, 1 is possible, but

[AngularJS] Combining ng-if and a filter

2014-04-03 Thread Art Zemon
Hello, I am running 1.3.0-beta.3, just learning AngularJS, and having trouble combining an ng-if on my search box with a filter on the results. Here is the code: label ng-if=5 logEntries.lengthSearch for: input ng-model=searchtext/label any ng-repeat=entry in logEntries |

[AngularJS] Re: angular Multiple pages problem

2014-04-03 Thread Pieter Knuvers
Hi Sander Thanks for the reaction. im new to angular but not websites. i have a angular page running here, and the you will see my problem. http://www.bwired.nl:8089/ang you see 3 pages, if you click on smartmeter and wait a few seconds you see this page updating realtime. if you go to other

[AngularJS] how to implement the kendo window with angularJS

2014-04-03 Thread learning ng
I am trying to generate a modal in my angularJS app with kendo UI, i am using ng-click to open the window. What will be the efficient way to implement this? -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

[AngularJS] unit test - Unexpected request

2014-04-03 Thread Kévin Ribot
Hello, I'm trying to develop an unit test, but i get an error : Error: Unexpected request: GET views/accueil.html No more request expected Here is my plunker : http://plnkr.co/edit/GjvvhUr2aFQJAXGGkJHy?p=preview *not paying attention to errors* (I do not have the same on my computer)

[AngularJS] Re: how to iterate on this data by directive

2014-04-03 Thread phil pastorek
Were you able to eventually get it to come up? Sounds like plunker may have went down or something. On Thursday, April 3, 2014 3:56:22 AM UTC-4, Rakesh Makam wrote: i am getting a error on the plnkr link error : '503 Service Unavailable' On Thursday, April 3, 2014 3:34:35 AM UTC+5:30,

[AngularJS] Entity Framework

2014-04-03 Thread Philip
Hello Using Angular in Visual Studio. Anybody used Entity Framework (Visual Studio 2013) when connecting to Oracle - when using the update model to connect two tables from a schema the html page does not render the data to a page. If I simply load one table to the model then fine as I get

[AngularJS] Re: how to iterate on this data by directive

2014-04-03 Thread Rakesh Makam
i need to display all the data in html , cal u plz help me on this. On Thursday, April 3, 2014 6:56:26 PM UTC+5:30, phil pastorek wrote: Were you able to eventually get it to come up? Sounds like plunker may have went down or something. On Thursday, April 3, 2014 3:56:22 AM UTC-4, Rakesh

[AngularJS] mocking dependency of a dependency

2014-04-03 Thread Pudas Jriest
Hi all, I have a Controller, depending upon a service (service a), which in turn depends upon another service (service b). Controller ServiceA ServiceB I am writing a test (at least conceptually) at the Controller level. I am able to introduce a mock version of Service A, something like this

[AngularJS] Re: Problem in getting data from server in angularjs

2014-04-03 Thread Sander Elias
Hi Ravi, does this sample plunk http://goo.gl/JOk7CK help you? I wrote it a while ago, for a similar question. If you have more questions, just ask! Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and

[AngularJS] Re: Combining ng-if and a filter

2014-04-03 Thread Sander Elias
Hi Art, ng-if creates a new scope, look up the angularJS dot rule. It boils down to that the searchtext ends up in the new scope of the ng-if. Regards Sander -- You received this message because you are subscribed to the Google Groups AngularJS group. To unsubscribe from this group and stop

Re: [AngularJS] Re: call controller function from inside the directive

2014-04-03 Thread Sander Elias
Hi Lucian, I updated the plunk once more, it now also includes a witch function. 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

[AngularJS] Re: angular Multiple pages problem

2014-04-03 Thread Sander Elias
Hi Pieter, The loading of the scripts is not the problem. The problem lies in the execution;) I took a quick peek, and didn't dig in, but you start fetching your data at page-load time. That is where the problem originates. You should turn off the automatic loading, and use the controller of

[AngularJS] Re: mocking dependency of a dependency

2014-04-03 Thread Pudas Jriest
One idea I had was to change the karma config (im my case) so that the actual serviceB js file isn't included, and instead the mock version (which the same module / service name). I'd rather not have to do that though, seems like there should be a better was that does not need me to exclude

[AngularJS] List box with no selection

2014-04-03 Thread Stephen Schaub
I have a select element that uses the size attribute to create a list box. I'm using the ng-options attribute to populate the list box. Initially, when no item is selected in the list box, there is an empty items that appears at the top of the list. When an item in the list is selected, the

[AngularJS] Re: List box with no selection

2014-04-03 Thread Sander Elias
Hi Stephen, What is it that you want to be displayed when nothing is selected? Put that in the ng-Model and you are done. 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

[AngularJS] Re: angular Multiple pages problem

2014-04-03 Thread Sander Elias
Pieter, Just to clarify a bit more, loading a script does not automatically make it run.. Probably there is some kind of on/off switch for the library you use to do the fetching flip this switch in the controller that needs the data! Regards Sander -- You received this message because you

Re: [AngularJS] Re: call controller function from inside the directive

2014-04-03 Thread Lucian Enache
Thanks Sander, Now I've finally understood how the binding was done. Best regards Lucian Sent from my iPhone On 03/apr/2014, at 16:29, Sander Elias sanderel...@gmail.com wrote: Hi Lucian, I updated the plunk once more, it now also includes a witch function. Regards Sander -- You

Re: [AngularJS] Re: List box with no selection

2014-04-03 Thread Stephen Schaub
Sander, Thanks for your reply. Let's say the list has the following items: Red | Blue | Green When nothing is selected, then none of the items should be highlighted. What should I put in the ng-Model in this case? If I set it to null or make it blank, then Angular inserts an empty item at

Re: [AngularJS] Using multiple values in ng-options

2014-04-03 Thread María Alejandra Gómez Casani
It help me a lot! Thanks :D El jueves, 14 de marzo de 2013 15:08:33 UTC-5, Clint Checketts escribió: Would this suit your needs? http://plnkr.co/edit/TZG3Ra7yTWcAxcimz91B?p=preview Concatenate the values in the expression? select ng-model=color ng-options=(c.name+' '+c.shade) for c in

[AngularJS] Re: Using multiple values in ng-options

2014-04-03 Thread María Alejandra Gómez Casani
El jueves, 14 de marzo de 2013 15:01:44 UTC-5, Brad McAlister escribió: Is it possible to concatenate 2 values in a model array and push them back into the model? I need to grab two values and put them together into a new one so I can use that to display them in the select box with

Re: [AngularJS] Re: List box with no selection

2014-04-03 Thread Sander Elias
Hi Stephen, The option list shows the current value. If the current value is not in the list it will be put in there. So, whatever you will put in the ng-model will be shown. this how a select works. There is nothing Angular on this. It is how HTML forms work. If it is critical to your UX,

[AngularJS] Re: mocking dependency of a dependency

2014-04-03 Thread Gordon Bockus
You can replace service b with a spy or mock object using the $provide service. Check out this blog under providing custom mocks: http://www.benlesh.com/2013/06/angular-js-unit-testing-services.html Gordon On Thursday, April 3, 2014 9:47:15 AM UTC-5, Pudas Jriest wrote: One idea I had was to

[AngularJS] Advice hooking things up

2014-04-03 Thread Christos Jonathan Seth Hayward
I have something that should be showing a lot of data that is not showing any data. In my HTML I have: div ng-controller='OutputController' div ng-repeat='user in data.users' div ng-repeat='monologue in data.monologues[user]' span

[AngularJS] Submit Button Not Working on Android

2014-04-03 Thread cutey Love
Hi, I have my app here http://www.jamballa.com/platform/app/#/login the problem is while it works fine on desktop, on Android the Login button (when enabled) doesn't work, I click it and nothing happens? any ideas? -- You received this message because you are subscribed to the Google Groups

Re: [AngularJS] Re: Extending a directive

2014-04-03 Thread Luke Kende
Yes you can use another directive to do it, but timing of the wijmo directive's rendering is the challenge. You'd have to create a $watch function do you know when their directive has created the element and then modify it with jquery in your directive. Does that make sense? On Thu, Apr 3,

[AngularJS] Re: mock $http service into controller for testing

2014-04-03 Thread Luis De Avila
Hi Daniel, Just to be clear, the value of someData has to get defined by you. someData won't come from the real endpoint. For example: var someData = {a: '1', b: '2'}; .respond(200, someData); Foo.then(function (data) { expect(data.length).toBe({a: '1', b: '2'}); On

[AngularJS] Re: Angular + CORS bug ?

2014-04-03 Thread Greg H.
hey guys, Did anyone ever found an answer to that issue? I'm actually experiencing the same problems with: angular 1.2, and a rack-cors on the server side For some reasons it's only working when my server is local... here is my local option req/res =

[AngularJS] Re: Submit Button Not Working on Android

2014-04-03 Thread cutey Love
Just to add I did some testing and it seems when I call Login.save() that is an ng resource service it doesn't work?? On Thursday, April 3, 2014 5:45:08 PM UTC+1, cutey Love wrote: Hi, I have my app here http://www.jamballa.com/platform/app/#/login the problem is while it works fine on

Re: [AngularJS] Re: List box with no selection

2014-04-03 Thread Stephen Schaub
Hi, Sander, In an HTML select that is rendered as a dropdown, you are correct. Some item must be selected in the dropdown. However, in an HTML select that is rendered as a list (size 1), it is possible in pure HTML for no item to be selected. That is the scenario I am discussing.

[AngularJS] Re: Submit Button Not Working on Android

2014-04-03 Thread cutey Love
function LoginCtrl($scope, Login, $location) { $scope.login = function() { alert(login Clicked); alert(Data sent : + JSON.stringify($scope.user)); Login.save($scope.user, function(data) { alert(Save);

[AngularJS] Re: AngularJs Lazy Loadng without RequireJS

2014-04-03 Thread Magnus Lassi
Have you looked at Vojta Jina's example: https://github.com/vojtajina/ng-1.x-async-hack There are other decent solutions on how to achieve lazy loading in angular 1.x but I liked Vojta's solution the best because the angular controllers / services etc still look like a regular angular project.

[AngularJS] Re: ui-router: best practice for updating css of states/views?

2014-04-03 Thread Luis De Avila
Hi Gordon, Thanks for the suggestion. I'll play around with that idea today. Here's a plunker of what I currently have hacked together. I don't think my solution is very elegant or salable, I'm going to have a lot of pages with edit panels. Thanks again for the feedback. Luis On Saturday,

[AngularJS] Re: ng-include ~ scope binding issue.

2014-04-03 Thread sadha sivam
Thanks to all , I'm beginner for AngularJS project.. kindly guide me.. Please see attached Image file. In SPA, (index.html) have header, footer, navigation bar and ng-view (body). In route configuration declared as a landingPage as a default page. (otherwise). Once page loaded, landing.html

Re: [AngularJS] Re: List box with no selection

2014-04-03 Thread Sander Elias
Hi Stephen, I'm not sure what it is you want to achieve, can you build a plunker demonstrating what you have, and using plain HTML of what you would like to see? Fairly sure I can fix this, as soon as I understand what it is you are after ;) Regards Sander -- You received this message

[AngularJS] Restangular - extending model when using your own model layer

2014-04-03 Thread Magnus Lassi
Hi, I've started using Restangular and I really like it when communicating to a REST backend. I have a case which I'm unclear on if it can help me with. I have a UserModel which is part of my model layer. It may have custom attributes that the server doesn't have in it's model and also

[AngularJS] Re: Advice hooking things up

2014-04-03 Thread Christos Jonathan Seth Hayward
To ask a slightly more focused question: At present my data is being sent as {monologues: { jonathan.hayw...@pobox.com: [[False, 0.0], [False, 0.0], [False, 0.0], [False, 0.0], [False, 0.0], [False, 0.0], [False, 0.0], [False, 0.0], ...] }, users: [jonathan.hayw...@pobox.com]} On SO someone

[AngularJS] Re: angular Multiple pages problem

2014-04-03 Thread Pieter Knuvers
you got me thinking again there is a websocket which receives the new data as it comes in primus.$on('data', function (data) { if (data.topic) { var parts = data.topic.split('/'); // value/org3/temp console.log(parts.length) console.log(parts[0]) console.log(parts[1])

[AngularJS] Why is an object defined with .constant() available in .config() but not .factory() method?

2014-04-03 Thread Pulkit Singhal
When I setup with a string constant everything works: https://gist.github.com/pulkitsinghal/9962161#file-works-js But when I setup a constant which is an object, it works in .config() methods but not inside .factory() methods: https://gist.github.com/pulkitsinghal/9962161#file-fails-js What am

[AngularJS] Re: Why is an object defined with .constant() available in .config() but not .factory() method?

2014-04-03 Thread Lars Christian Jensen
On Thursday, April 3, 2014 10:23:12 PM UTC+2, Pulkit Singhal wrote: When I setup with a string constant everything works: https://gist.github.com/pulkitsinghal/9962161#file-works-js But when I setup a constant which is an object, it works in .config() methods but not inside .factory()

[AngularJS] Re: Angular + CORS bug ?

2014-04-03 Thread Walter B.
Still happening for me. We've experimented with a solution blogged about by Foursquare (http://engineering.foursquare.com/2011/12/08/web-sites-are-clients-too/) and with a post parameter, _METHOD, containing the actual HTTP method we'd like to use. I personally like the second option,

[AngularJS] Re: Why is an object defined with .constant() available in .config() but not .factory() method?

2014-04-03 Thread Michael Bielski
The docs actually cover that: http://docs.angularjs.org/api/auto/object/$provide#constant -- 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] karma specs seemingly randomly hang for up to 10s

2014-04-03 Thread Nikita Tovstoles
Probably too vague to be actionable at this point, but nevertheless... I test my angular app using Jasmine and Karma (0.12) - locally via JetBrains' WebStorm Karma integration. On nearly every other test run, one spec or another (seemingly randomly) hangs for up to 10 seconds - but then

[AngularJS] Re: Why is an object defined with .constant() available in .config() but not .factory() method?

2014-04-03 Thread Pulkit Singhal
The docs state: Register a constant service, such as a string, a number, an array, an object or a function... They do not cover why it works as an object in a .config() method but not a .factory() method, unless I don't understand something about the 2 liens that are written there? Please

[AngularJS] Re: Why is an object defined with .constant() available in .config() but not .factory() method?

2014-04-03 Thread Pulkit Singhal
I'll try to setup a jsfiddle and get back, in the mean time, yes I do have code that depends on factory and therefore the console.log statement can be seen in chrome at runtime ... and when its spits out undefined for the object in factory, I wonder if its an injection bug or something I don't

[AngularJS] Re: Why is an object defined with .constant() available in .config() but not .factory() method?

2014-04-03 Thread Michael Bielski
Sorry, but you'll have to reach out to the Angular team for the Why part. -- 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

Re: [AngularJS] karma specs seemingly randomly hang for up to 10s

2014-04-03 Thread Kai Groner
I've seen Chrome take a while when the test runner isn't in a foreground tab. Is your problem browser specific? Kai On Thu, Apr 3, 2014 at 5:25 PM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: Probably too vague to be actionable at this point, but nevertheless... I test my angular

[AngularJS] Re: Why is an object defined with .constant() available in .config() but not .factory() method?

2014-04-03 Thread Pulkit Singhal
Wouldn't you know it, when I tried setting up the fiddle, it all just worked :) http://jsfiddle.net/pulkitsinghal/xsDdY/ Thanks for the suggestion @Lars. On Thursday, April 3, 2014 4:30:03 PM UTC-5, Pulkit Singhal wrote: I'll try to setup a jsfiddle and get back, in the mean time, yes I do

[AngularJS] Re: ui-router: best practice for updating css of states/views?

2014-04-03 Thread Luis De Avila
For posterity... I ended up enhancing the provider service so that it would listen for '$locationChangeSuccess' broadcasts. and, as Gordon suggested using the url to drive the CSS that is applied. I used $location.url() and not $state.current.name because ui-router does not detect use of the

Re: [AngularJS] karma specs seemingly randomly hang for up to 10s

2014-04-03 Thread Nikita Tovstoles
Good thought! It was happening pretty consistently with Firefox; seemingly went away after switching to Chrome... -nikita On Thu, Apr 3, 2014 at 3:08 PM, Kai Groner k...@gronr.com wrote: I've seen Chrome take a while when the test runner isn't in a foreground tab. Is your problem browser

Re: [AngularJS] Re: Angular + CORS bug ?

2014-04-03 Thread Kevin Shay
I haven't looked at the details of your report too carefully, but one thing we've noticed is that when the backend does not return any response at all (i.e. a timeout), the browser confusingly reports this as a CORS error due to the absence of any headers being returned. So we've seen this sort of

[AngularJS] Re: Wizard style Next/Previous animation

2014-04-03 Thread Matias Niemelä
Here's some progress on this: https://groups.google.com/forum/#!topic/angular/iKpRhrPr8ko On Tuesday, March 25, 2014 12:54:09 PM UTC-4, Gordon Bockus wrote: Hello, I'm working on a wizard style page where I want to have a previous/next buttons to navigate from step to step. I'm using the

[AngularJS] Re: Wizard style Next/Previous animation

2014-04-03 Thread Matias Niemelä
Here's some progress on this: https://github.com/angular/angular.js/issues/6974 On Tuesday, March 25, 2014 12:54:09 PM UTC-4, Gordon Bockus wrote: Hello, I'm working on a wizard style page where I want to have a previous/next buttons to navigate from step to step. I'm using the ui-router

[AngularJS] Factory function executing with out form submit

2014-04-03 Thread Billy Figueroa
Hi this is a bit of a weird error. I m hoping someone can help me. I am working on an auth service where I want to authenticate a user once they submit their form. For some reason the code is executing with out me submitting the form Here is the plunker

[AngularJS] Re: Combining ng-if and a filter

2014-04-03 Thread Art Zemon
Thanks, Sander. That makes sense. -- Art Z. -- 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 email

[AngularJS] Angular way for disabling an option in a combo

2014-04-03 Thread Santiago Ezcurra
I'm using ngOptions for populating a select combo in Angular insted of doing it with ngRepeat (according to recommended in Angular Docs). The thing is that I need to disable some options inside the combo after the user selects them. Here's where I cannot figure out how to do this other than

Re: [AngularJS] Re: List box with no selection

2014-04-03 Thread Sander Elias
Hi Stephen, You are right, that is a bit annoying ;) here is your solution: http://plnkr.co/edit/kCCERt4iqd7pKYcpiot5?p=preview 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

[AngularJS] Re: angular Multiple pages problem

2014-04-03 Thread Sander Elias
Hi Pieter, Did you stopped thinking then? You should teach me how to do just that :-D The code you showed is the reaction on an incoming angular event. the source of your problem lies in the code that kicks off the emitting of it! BTW. You can meet me at the next Dutch AngularjS event (7

[AngularJS] Re: Angular way for disabling an option in a combo

2014-04-03 Thread Sander Elias
Hi Santiago, Sure!. If you build a plunk, I will take a look at it. I don't believe it can be done via ngOptions. 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,

Re: [AngularJS] Wizard style Next/Previous animation

2014-04-03 Thread Gordon Bockus
Awesome. Thanks for the update. Gordon On Apr 3, 2014, at 9:02 PM, Matias Niemelä matias.niem...@gmail.com wrote: Here's some progress on this: https://groups.google.com/forum/#!topic/angular/iKpRhrPr8ko On Tuesday, March 25, 2014 12:54:09 PM UTC-4, Gordon Bockus wrote: Hello, I'm

[AngularJS] Re: Recreate GMail Searchbox (typeahead / Object serialization to build queries)

2014-04-03 Thread Sander Elias
Hi Olivier, You have set yourself a daunting task ;) What needs to be done, is that you need to build a lexical scanner. And probably a parser after that. Do some reading in that area, and I will help you along. If you want to do this the right way, you can't cut it with a couple of regex

[AngularJS] Re: Why is an object defined with .constant() available in .config() but not .factory() method?

2014-04-03 Thread Sander Elias
Hi Pulkit, Because it just works perhaps? So there is no need to explain something that isn't happening? ;) If you can provide a working not working example, you have found a bug, and should file a bug at github. When you are not sure it's a bug, and want your code reviewed before filing a

[AngularJS] Re: Angular way for disabling an option in a combo

2014-04-03 Thread Luke Kende
I was able to get it done with a solution on SO: http://stackoverflow.com/questions/16202254/ng-options-with-disabled-rows On Thursday, April 3, 2014 10:31:28 PM UTC-6, Sander Elias wrote: Hi Santiago, Sure!. If you build a plunk, I will take a look at it. I don't believe it can be done

Re: [AngularJS] Re: Why is an object defined with .constant() available in .config() but not .factory() method?

2014-04-03 Thread Pulkit Singhal
Hey Sander! Thanks for responding. As you may not have seen my previous post 6 hours ago: Wouldn't you know it, when I tried setting up the fiddle, it all just worked :) http://jsfiddle.net/pulkitsinghal/xsDdY/ Thanks for the suggestion @Lars. - Pulkit (646)-535-2357 Cofounder CTO,

[AngularJS] Re: Factory function executing with out form submit

2014-04-03 Thread Sander Elias
Hi Billy, the way you set up your login function makes sure the request fires directly! change it to this: $scope.login = function() { AuthFactory.authenticate($scope.loginData).then(function(response) { console.log(response.status);

[AngularJS] Re: Factory function executing with out form submit

2014-04-03 Thread Luke Kende
Not sure why you are using type=submit here since ultimately your are going to authenticate via $http but, that issue aside, you are setting your login to the result of calling the authenticate function hence as soon as the controller is loaded it is executing the function. Try this:

Re: [AngularJS] Re: Why is an object defined with .constant() available in .config() but not .factory() method?

2014-04-03 Thread Sander Elias
Hi Pullkit, I had the time-line wrong ;) 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 post to this

[AngularJS] Re: Advice hooking things up

2014-04-03 Thread Luke Kende
I have to admit, it's hard to follow what you are trying to do. Have you spent much time understand Javascript object notation (JSON)? It looks like the core of your difficulty is understanding effective data structures. Also, if you can create a plunker to demonstrate, that makes it easier