RE: [AngularJS] AngularJS with .NET Identity (MVC) Authenthication?

2014-02-12 Thread Mauro Servienti
Does anyone have any tips on how to use .Net Identity authentication with AngularJS? I'm a complete newbie to both Angular and .Net that is using the Hot Towel Angular SPA Template ( https://github.com/johnpapa/HotTowel-Angular ) as a basis for an application. The .Net views are easily configura

[AngularJS] Re: An interesting case about missing onclick events on DOM updates

2014-02-12 Thread Sander Elias
Hi Alexandre, I’m glad you figured it out. Your example shows nicely that the track by feature works as a charm! There is still something that has to be added, the track by feature requires an unique identifier. As an example, it you don’t have an unique ID, you can combine it with the name l

[AngularJS] Re: some issues

2014-02-12 Thread Pushpendra Kumar
Hello Stan, No doubt angularjs is good for an enterprise app. I am using this for the same. And creating is not required always, u can use when you u need. go to documentation. I never used **-ng .* Best Regards, Pushpendra

[AngularJS] UI changes for AngularJs Docs website

2014-02-12 Thread Robin Chauhan
Hi, I recently started with AngularJs, and I am referring to the docs for Angular Api (eg: http://docs.angularjs.org/api/ng.$anchorScroll). whenever I select any new item from the side bar it refreshes the whole page (i.e. side bar + the content section), I believe if we only render the content

[AngularJS] Substitute of ng-table

2014-02-12 Thread Pushpendra Kumar
Hello All, I want to use table like jquery data table for that planned to use ng-table, but ng-table does work when you want dynamic column and filter and sorting. Now I am searching for the substitute of same, also i don't want to use extra library like jquery n all.

[AngularJS] Re: Substitute of ng-table

2014-02-12 Thread Pushpendra Kumar
Sorry I forgot to paste the link: http://plnkr.co/edit/M60ka7ONMYn4DwwtzT01?p=preview On Thursday, 13 February 2014 10:46:12 UTC+5:30, Pushpendra Kumar wrote: > > Hello All, > > I want to use table like jquery data table for that planned to > use ng-table, but ng-table does work when

Re: [AngularJS] Re: Is it required to use require.js with angular app

2014-02-12 Thread Pushpendra Kumar
Thank you so much. Best Regards, Pushpendra On 12 February 2014 21:21, Martin Alix wrote: > You don't need any other library like requireJS but I do use *gulp* and > *browserify* to simplify all the referencing and minifying. > RequireJS was just too slow and heavy for me. YMMV. > > see https

[AngularJS] Re: [angular.js] Re: Socket.IO as a service

2014-02-12 Thread Kelvin Jones
Did you ever fix this problem? On Thursday, April 18, 2013 2:11:50 PM UTC-6, AnonShortTerm wrote: > > @Gal Ben-Haim:: Did you ever solve the problem of having the listeners > not be destroyed? I noticed your > stackedoverflow

[AngularJS] Apply AngularJS - After lazy dynamic HTML

2014-02-12 Thread Amit Malhotra
I've a HTML line with AngularJS directive that I am inserting dynamically through some jQuery controls that are being used since 2009. I cannot change this Control. However, I want to start using angular JS. The generated HTML for a grid, column rating, is: What I want is to get this htm

[AngularJS] Re: Beating circular dependencies

2014-02-12 Thread Jesus Rodriguez
Seems like I can't edit. I created a plunker: http://plnkr.co/edit/pKiT3xtG7MBS23DC8JrF?p=preview That is my library (WIP and subject to change, but the interface probably will be the same and it is the problematic one) On Thursday, February 13, 2014 12:57:06 AM UTC+1, Jesus Rodriguez wrote: >

[AngularJS] Beating circular dependencies

2014-02-12 Thread Jesus Rodriguez
I am fighting a fight I cannot understand properly so I come here to get some knowledge. I am porting a jQuery directive to angular. It is to popup alerts. I decided to go to the ui-bootstrap $modal route, AKA a directive and a factory that will create new directives to append them to the body.

[AngularJS] Re: ngModelController Woes

2014-02-12 Thread Rhett Lowe
Sander, http://plnkr.co/edit/JlVDPZ Above is the Plnkr link. Try this: 1. Move slider by mouse and see the numbers change 2. Change number and see slider NOT change 3. click first reset button. It will work 4. move slider again 5. click second reset button. text boxes will reset

[AngularJS] Re: AngularJS and quirks mode: blank screen on IE8+

2014-02-12 Thread Surreal
Maybe some code would help to understand the problem: *index.html* http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> test ie7 Search : {{card.name}} {{card.reference}}

[AngularJS] Announcement: AngularJS + node-webkit seed project version 1.1.0

2014-02-12 Thread Joel Grenon
We've put together a solid foundation to use AngularJS to build portable desktop apps using node-webkit. Just clone the repo and follow the instructions in the readme. Everything is built using Grunt, no need to pre-install anything (not even node-webkit). The navigation is managed using angul

Re: [AngularJS] Re: Ordered application initialization with promises in a dedicated service

2014-02-12 Thread doug g
Hi Tobias Thanks so much for your thoughtful reply. Now I understand the reason for that $browser.defer, and it makes sense that you implemented it that way. And you are right - Im not relying on the broadcast event, but rather the deferred watchers, so the unit tests are more important to me. But

[AngularJS] Re: An interesting case about missing onclick events on DOM updates

2014-02-12 Thread Alexandre Verri
I created an example in JSFiddle, covering all the use cases from my GUI. They are working fine: http://jsfiddle.net/87xML/25/ I am glad that you have shared the information about the 'track by' feature. Regards, Alexandre Em quarta-feira, 12 de fevereiro de 2014 16h51min37s UTC-2, Sander Eli

[AngularJS] Re: Ordered application initialization with promises in a dedicated service

2014-02-12 Thread Tobias Gesellchen
Hi Doug, thanks for your feedback! It seems like the documentation for $browseris not linked on the table of contents and moreover doesn't contain any content. You can find a link at the $timeout documentation

[AngularJS] Re: An interesting case about missing onclick events on DOM updates

2014-02-12 Thread Alexandre Verri
Hi Sander, I don't know why it fails in my application. In my GUI the only way to know about an object being added or removed is observing the list. The data comes from the server via JSON. But I made a Fiddle with the scenario, and it is working fine there, please check it: http://jsfiddle.ne

[AngularJS] Re: An interesting case about missing onclick events on DOM updates

2014-02-12 Thread Sander Elias
Hi Alexandre, Hmm, never had problems in this area. However, if you change the an array so that the same ID has new info, you need to change the id. otherwise Angular does not know it has to update the row. Makes any sense? If you put up a plunk with your actual problem, I will take a look at it

Re: [AngularJS] Re: Reloading an angular view?

2014-02-12 Thread Zach Schneider
Thanks Luke! i'll look into that. I really appreciate the help. On Wednesday, February 12, 2014 11:58:40 AM UTC-6, Luke Kende wrote: > > Basically, impress needs to offer a way to init, cleanup, re-init, or > hide/show. That can be done in the directive if impress exposes some > methods to hand

Re: [AngularJS] Re: Reloading an angular view?

2014-02-12 Thread Luke Kende
Basically, impress needs to offer a way to init, cleanup, re-init, or hide/show. That can be done in the directive if impress exposes some methods to handle special cases. Otherwise, you might need to remove the view from routeProvider and just use ng-show /ng-hide in the index.html (main templat

Re: [AngularJS] Re: Reloading an angular view?

2014-02-12 Thread Zach Schneider
I tried that first actually. The problem is impress writes everything to a canvas tag and loads each class as a child value. Once you leave the view and return angular still has the rendered impress elements inside the DOM, so impress throws out an error since the child values already exist. So

[AngularJS] Re: An interesting case about missing onclick events on DOM updates

2014-02-12 Thread Alexandre Verri
The only problem with 'track by' is when there are new information in array. In this case, the new information will not be displayed. Is it possible to handle the new data? Em quarta-feira, 12 de fevereiro de 2014 15h08min41s UTC-2, Alexandre Verri escreveu: > > Hello Sander, > > I was wonder

Re: [AngularJS] Re: Reloading an angular view?

2014-02-12 Thread Luke Kende
So, the main thing I can see here is that the DOM to which you are applying impress to gets removed completely on a view change, so impress's references would be void after leaving the view and returning. What about putting

[AngularJS] Re: An interesting case about missing onclick events on DOM updates

2014-02-12 Thread Alexandre Verri
Hello Sander, I was wondering if any elegant solution like this existed. Thank you very much for the information. It worked as expected. Regards, Alexandre Em quarta-feira, 12 de fevereiro de 2014 14h44min12s UTC-2, Sander Elias escreveu: > > Hi Alexandre, > > You are reassigning your arra

[AngularJS] Re: An interesting case about missing onclick events on DOM updates

2014-02-12 Thread Sander Elias
Hi Alexandre, You are reassigning your array every second. Angular has no way knowing that you put the same stuff again, so it re renders the whole thing. This is exactly where the track by option came from/for. Have a look: http://jsfiddle.net/zEQps/ Regards Sander -- You received this messa

[AngularJS] Re: Filter function input is undefined

2014-02-12 Thread Sander Elias
Hi Yonatan, You define a custom filter this way: define(['./module'], function (filters) { 'use strict'; angular.module('mymodule') .filter('myCustomFiler',function () { return function (input) {if (input.Name !== "Inactive") return input; }});})

[AngularJS] An interesting case about missing onclick events on DOM updates

2014-02-12 Thread Alexandre Verri
Hello, I would like to share an interesting case about missing onclick events on DOM updates. In order to best describe the problem, please check the following Fiddle example: http://jsfiddle.net/87xML/13/ -- You received this message because you are subscribed to the Google Groups "Angular

[AngularJS] Re: Reloading an angular view?

2014-02-12 Thread Zach Schneider
Yep, I've only spent a few days on Angular and i'm working on modifying code someone else wrote. The code is written on a platform that required a lot of hacking to get to work, so i'm not sure how i'd even start making a plunker from it. I can show you my controller and the route provider th

[AngularJS] Re: $valid in combobox

2014-02-12 Thread Martin Alix
Can you recreate it in a Plunker, JSBin, jsFiddle? On Wednesday, February 12, 2014 9:36:47 AM UTC-5, Diego Monteiro wrote: > > Hi, > > My code not set the class error in a div. > > somebody knows why? > > > > > && myForm".credencial.$invalid}"> > Combo: > > ng-model="crede

[AngularJS] Filter function input is undefined

2014-02-12 Thread Yonatan Kra
Hi, In my partial I have this: {{item.Name}} In my filter I have: define(['./module'], function (filters) { 'use strict'; return filters.filter('myCustomFilter', function () { return function (item) { if (item.Name !== "Inactive") return item; } }); })

[AngularJS] Re: Can you build a mock website with Angularjs by just mocking all json responses from the server somehow?

2014-02-12 Thread Martin Alix
Just use a service/factory... Later on, you can swap $q for $http and call some RESTful backend... You can also use $httpBackend, but I find that is more work at the onset... angular.module('app') .factory('FooService', ['$q', function($

[AngularJS] data not getting printed on html using restangular

2014-02-12 Thread MIKHIL MUDIRAJ
i all hey i am getting problem with restangular ...on load of html page i am getting data (checked using alerts) , but when i assign it to scope its not getting printedbut if i open developers tool in IE data, gets printed on html properly. Please help. -- You received this message bec

[AngularJS] Re: Is it required to use require.js with angular app

2014-02-12 Thread Martin Alix
You don't need any other library like requireJS but I do use *gulp* and *browserify* to simplify all the referencing and minifying. RequireJS was just too slow and heavy for me. YMMV. see https://www.npmjs.org/package/gulp-browserify On Wednesday, February 12, 2014 8:53:33 AM UTC-5, Pushpendra

[AngularJS] Can you build a mock website with Angularjs by just mocking all json responses from the server somehow?

2014-02-12 Thread gitted
Say you want to start a new project, but you want a fully working website without having to do all the backend server side coding. How could you do this with Angularjs? Is it possible to route all requests to a mock backend which is just sample json responses? This way, you can see how the web

[AngularJS] ng-resource: "hashed" JSON

2014-02-12 Thread Denis J. Cirulis
Hello list, i have to consume rest service in my application and the output of resource is "hashed" JSON (probably python-flask is behind the scenes). I can not use ng-resource in my factory because of the structure like: { 'books': [ { 'name':'1'}, { 'name':'2'}, ] } ng-resource expect

Re: [AngularJS] Re: Passing variables from one page to another

2014-02-12 Thread Luke Kende
I won't claim to be a guru with Angular, I just have worked through these sorts of issues. What I have found is that Angular gives you a general framework for structuring your app, but not necessarily a guideline on how to do it. It's fairly versatile in letting you determine how to do it. That

[AngularJS] $valid in combobox

2014-02-12 Thread Diego Monteiro
Hi, My code not set the class error in a div. somebody knows why? Combo: select -- 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 em

[AngularJS] Re: Ordered application initialization with promises in a dedicated service

2014-02-12 Thread doug g
Hi First of all, thanks for your code example. I was running into the problem of watchers being fired over and over on an app Im developing, and your ordered initialization code helped a lot. Sorry for what is probably a newbie question, but I am looking at the broadcastAppInitialized function

Re: [AngularJS] Re: Passing variables from one page to another

2014-02-12 Thread Yonatan Kra
Thanks. It makes much more sense now (as usual with things that work :)). How about "value"? Would it work the same? e.g. myApp.value('myValue',{ myStatus: "ok" }); or only with a service ( *myApp.service('myService',function(){* *var myStatusObj = {myStatus: "ok"}; * *return myStatusObj;* *});*)

[AngularJS] Re: Is it required to use require.js with angular app

2014-02-12 Thread Roberto Guerra
It is not required. Just follow the documentation. On Wednesday, February 12, 2014 7:53:33 AM UTC-6, Pushpendra Kumar wrote: > > Hello All, > > Can we avoid the use of requirejs in angular app? > How we can achieve this? > > > Regards, > Pushpendra > -- You received this mess

Re: [AngularJS] Re: Passing variables from one page to another

2014-02-12 Thread Luke Kende
I wrote my example terribly (the service name should obviously be consistent) but yes, the problem is due to primitive reference being passed by value. A rule to follow is always pass an object as javascript will maintain reference to the object which is only created once in your service (when

[AngularJS] Is it required to use require.js with angular app

2014-02-12 Thread Pushpendra Kumar
Hello All, Can we avoid the use of requirejs in angular app? How we can achieve this? Regards, Pushpendra -- 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] some issues

2014-02-12 Thread Rodrigo Stan
I liked angularjs but I got some questions manipulations in html tags using those *-ng, this is not a bad practice? my dependent project angularjs? What about using other frameworks and plugins? always have to create a diretivass? Does Angularjs would be good for enterprise applications? t

[AngularJS] Support of old Android browsers

2014-02-12 Thread Petteri Hietavirta
I would like to know how well AngularJS works on older Android browsers. For example Android 2.2 and so on. Are there any performance pitfalls or lacking features on those older devices? Thank you! Petteri Hietavirta -- You received this message because you are subscribed to the Google Groups

[AngularJS] compiling HTML (directives) manually

2014-02-12 Thread Dulmandakh Sukhbaatar
Hello, I'm new to AngularJS, but it's easy to learn and clean write. Thank you. I'm converting my web application to angular from jquery, and doing it step by step. It uses bootstrap modal to show remote content on a page. As a start, I developed a directive that retrieves some data using $reso

[AngularJS] Re: event after angular has done its work and is idle (after digest loop)

2014-02-12 Thread Sander Elias
Oh, I forgot, You can use my sample to fire an event too. just put it in the signal function. the scope you are watching is reachable there with rs so rs.$broadcast('DigestIdle') will do what you want. Regards Sander -- You received this message because you are subscribed to the Google Group

[AngularJS] Re: bootstrap context menu usage (selected row in a table)

2014-02-12 Thread Deepthi Tulluri
Hi Johannes, i used ur example its working fn. but i have a problem with my code im nt get where im missing. here is my code {{d.name}} Edit This

[AngularJS] Re: event after angular has done its work and is idle (after digest loop)

2014-02-12 Thread Sander Elias
Hi Martin, Well, I have very mixed feelings about this. There are a few rare use-cases where it's a bit of a miss. Like your own one. However, If this gets into Angular itself, it will be used for all kind of things where it really wouldn't be suited. And all the edge-cases that evolve from tha

[AngularJS] Re: Adding custom Metods to $resource Instances.

2014-02-12 Thread Sebastian Sebald
This is almost working: http://plnkr.co/edit/MDaufSPa3BNvEAFNkHm1 -- 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: event after angular has done its work and is idle (after digest loop)

2014-02-12 Thread Martin Kuhn
Sander, thank you very much, looks good... BTW, wouldn't it be useful when angular provides an event when digests finished? Regards Martin Am Mittwoch, 12. Februar 2014 12:13:16 UTC+1 schrieb Sander Elias: > > Hi Martin, > > I took an existing plunk where I posted this. However, once in a whil

[AngularJS] Re: AngularJS; Parse Current URL PathName to Pull Out Parameters

2014-02-12 Thread Sander Elias
Hi Cody, Did you look into $location , I think most of what you need is solved in there! Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving

[AngularJS] Re: AngularJS; Parse Current URL PathName to Pull Out Parameters

2014-02-12 Thread Guntram Pollock
how about some regexping: function getURLParameter(name) { return decodeURI( (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] ); } -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group

[AngularJS] Re: event after angular has done its work and is idle (after digest loop)

2014-02-12 Thread Sander Elias
Hi Martin, I took an existing plunk where I posted this. However, once in a while one needs to hit the save button ;) It should work now. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop rec

[AngularJS] Re: event after angular has done its work and is idle (after digest loop)

2014-02-12 Thread Martin Kuhn
Hi Sander, thank you for your effort! but it seems that the plunker is not correct... Regards, Martin Am Mittwoch, 12. Februar 2014 10:23:27 UTC+1 schrieb Sander Elias: > > you can see it in action in this plunker: > http://plnkr.co/edit/Sud2Y0VFy3SH3QtZojg7?p=preview > > > -- You received

[AngularJS] Re: Help with unit tests. Variable undefined.

2014-02-12 Thread christoph . fanelsa
Am Dienstag, 11. Februar 2014 21:38:11 UTC+1 schrieb xrd: > > You are using karma? Are you sure all the files are loaded and in the > correct order? Care to post your karma configuration file? Yes. I'm using karma. My karma.conf > module.exports = function(config){ > config.set({ > ba

[AngularJS] Re: event after angular has done its work and is idle (after digest loop)

2014-02-12 Thread Sander Elias
Hi Martin, Ah, well, that’s indeed a good reason to want this. I don’t have a waterproof solution for this, but the wrote the following for you. It will trigger when no digest has occurred for 500ms app.run(['seDigestwatcher', '$rootScope', function (seDigestwatcher, rS) { // Set up the d

Re: [AngularJS] AngularJS $http.post responses activated much faster if periodic $rootScope.$digest in effect

2014-02-12 Thread Bernhard Rode
I think, Angulars digest (dirty checking) fires every x ms and your hack triggers another digest cycle. this may lead to a more "responsive" feeling in the first place. But did you have a look at your CPU usage. On my machine here, the usage climbs from 2-3 % up to 4-6 %. As long as your digest du

[AngularJS] Adding custom Metods to $resource Instances.

2014-02-12 Thread Sebastian Sebald
Hi there, I wanted to create "rich models" with ngResource but failed horribly. What I want to achieve is to transform the JSON and add additional methods to it. Like you can do with Restnagular ( https://github.com/mgonto/restangular#adding-custom-methods-to-models). I know that I can do somet

[AngularJS] Re: ngModelController Woes

2014-02-12 Thread Sander Elias
Hi Rhett, Ok, this clarifies some of it. However I have no idea how you set up the rest of your directive(s). The watch I posted before was without know you had an watch in already. If you put out an plunk or fiddle, I will take a look, and can perhaps provide you with some more accurate insig