[AngularJS] How to prevent a page load depending on the route's resolve return values.

2014-06-15 Thread Aleck Landgraf
Using angular's routing, I'm finding it difficult to prevent a page load if a user is unauthorized given I need to wait for the route's resolve payload. Following the example here , preventing

[AngularJS] Re: AngularJS simple DataBinding Issue

2014-06-15 Thread Anshul Jain
Thanks Eric and Sander for replying. I did what you told but still its not working. It would be great if you take a look :) I used ng-change in input tag and called highlightAll() when this event is fired. http://plnkr.co/edit/RGvedMTWTlDidAjssyNM?p=preview On Monday, June 16, 2014 8:52:55 AM

[AngularJS] Re: ui-router, html5mode, ui-sref with params issue/bug

2014-06-15 Thread Neil Camara
I dumped $state.go ui-router solution. I solved it using $watch and factory. On Saturday, June 14, 2014 12:56:25 AM UTC-5, Neil Camara wrote: > > Hi folks, > > I filed an issue/bug in UI-ROUTER. If someone knows a solution, please let > me know. > > https://github.com/angular-ui/ui-router/issues/

[AngularJS] Re: How to load nested JSON URLs and display in a template

2014-06-15 Thread Sander Elias
Hi David, Well, I have no idea what those url’s return. That makes it hard to give a complete solution to your problem. {{ room.room }} {{ room.floor }} {{resolve(data) ; data.data|json}} in your controller you ca

[AngularJS] Re: Angular get and set json data issue

2014-06-15 Thread Sander Elias
Justin, When learning angular (I suppose that is what you are doing?) it is a *really good idea* to *drop jQuery*, at least for the time you are getting to know angular. Also, you are trying to build a single page app right? navigating away in an login button is then also not the way to go. Re

[AngularJS] Re: Angular app design questions: controllers, views and conditional transitions

2014-06-15 Thread Sander Elias
Marko, Create a function in your controller that checks the result of the search service, and forward to the result view if ok, otherwise let the user know what he has to do, and stay within the same view. You can indeed trigger this function with an ng-click handler. Regards Sander -- You r

[AngularJS] Re: AngularJS simple DataBinding Issue

2014-06-15 Thread Sander Elias
Hi Anshul, After you have changed your data, you need to tell prism to rerender its part. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving e

[AngularJS] Re: Get desktop notifications on change in status of a bug logged in database using angular js

2014-06-15 Thread Sander Elias
HI Satish, Yes, it can be done. At least if you transfer your application to an chrome-app . Perhaps other browsers have similar functionality, but then you have to add support each one off those. Also if you only need the notification part, that ca

Re: [AngularJS] Re: How can I change string interpolation display, the 'angular way'?

2014-06-15 Thread Vaughan Hilts
Yup, seems very straight forward! I just couldn't get the keywords right. Thanks Naveen . On Sun, Jun 15, 2014 at 7:00 PM, Naveen Kohli wrote: > Something like in your case will be.. > > > MyApp.filter('displayEpisodeCount', [function () { > return function (input) { (input == -1) ? "Unkno

[AngularJS] Re: How can I change string interpolation display, the 'angular way'?

2014-06-15 Thread Naveen Kohli
Something like in your case will be.. MyApp.filter('displayEpisodeCount', [function () { return function (input) { (input == -1) ? "Unknown" : input; }; }]); On Sunday, June 15, 2014 6:58:19 PM UTC-4, Naveen Kohli wrote: > > You can implement a custom filter. That filter will return the

[AngularJS] Re: How can I change string interpolation display, the 'angular way'?

2014-06-15 Thread Naveen Kohli
You can implement a custom filter. That filter will return the value formatted the way you want. {{item.episodes|displayEpisodeCount}} You can see example of a custom filter from following post. http://www.byteblocks.com/Post/Create-countdown-clock-using-angularJS-services The example is at th

[AngularJS] How can I change string interpolation display, the 'angular way'?

2014-06-15 Thread Vaughan Hilts
I have an HTTP rest call that fetches a number from an endpoint. It will sometimes return '-1' to indicate that the number is 'unknown' (it's an episode count). Right now, I just use string interpolation? {{item.episodes}}?, but this displays a nasty '-1'. How can I get a clean 'Unknown', the a

[AngularJS] Improve Angularjs performance by lazy loading accordion content

2014-06-15 Thread Fasil kk
I have some automatically generated accordion tabs(ng-repeat is used). Few other accordion tab inside all accordion. And there is a form in each tab.(6 time-pickers will be there in each form). But the problem is that, Application is getting very slow, when the number of forms are increasing.

[AngularJS] Re: retrieve data from within a module

2014-06-15 Thread Martin Alix
Have you tried: ... .success(function( data) { return data; }); return Token; -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop rece

[AngularJS] Calling directive after ng-view

2014-06-15 Thread guilty82
Hello. I'd like to include some html after the ng-view was rendered. My goal is to load menu1.html when current route is /view1 and load menu2.html when the route is anything else. Here's the code: http://plnkr.co/edit/ud9ksPc9hgjMuqhGfYZR -- You received this message because you are subscribe

[AngularJS] Re: retrieve data from within a module

2014-06-15 Thread Marcelo Wanderley
need to store the token in a constant, is this possible? app.js .run(function($http){ var Token = $http.get('http://localhost/Project/Project Web/master/public/api/v1/t' ) .success(function( data) { console.log(data); });

[AngularJS] Re: retrieve data from within a module

2014-06-15 Thread Martin Alix
You cannot do that. The success function is called asynchronously long after the dataHere line has been reached. If you had a Plunkr to demonstrate what you are trying to do, it might be easier to explain how to properly use a promise inside a closure to achieve your goal... -- You received th

[AngularJS] Re: Videogular - An HTML5 video player for AngularJS! Feedback & Support!

2014-06-15 Thread prakash sam
Hi , Please provide me a any tutorial about videogular. i download videogular package form github and run in localhost. i didnt get anythink. i didnt know how to add video url in videogular plugin. please help me. On Sunday, August 4, 2013 9:22:58 PM UTC+5:30, Raúl Jiménez wrote: > > Hi all, > >

[AngularJS] Re: how to solve "appendChild" is undefined on element of directive ?

2014-06-15 Thread Adil Ramdan
up" help me please On Sunday, June 15, 2014 1:32:09 PM UTC+7, Adil Ramdan wrote: > > hallo i am new on angular.. > i have problem with function "appendChild" > here my story : > i have a library "JsonEditor" and i will use it on my directive > but inside the library there are a function "appendChi

[AngularJS] $q.when not resolved in Karma test

2014-06-15 Thread Jurek Błaszczyk
I use *$q.when* to wrap around other lib promises. It works like a charm but when i try to run it inside Karma the promise failes to resolve (*done()* is never executed) even if I ran $digest and even after timeout. Here is sample code: describe('test', function () { var $scope, $db,

[AngularJS] How to load nested JSON URLs and display in a template

2014-06-15 Thread David Janes
I'm having a tough time solving this problem. I have data (that's dynamically loaded using $http) that looks like this { "rooms": [ { "floor": "Main Floor", "room": "Kitchen", "api_endpoint": [ *"/api/endpoints/urn:iotdb:device:705bf5ae4ee5f042c47c437b700b9315"*