[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

[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

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

[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({

[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 this

[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

[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: AngularJS; Parse Current URL PathName to Pull Out Parameters

2014-02-12 Thread Sander Elias
Hi Cody, Did you look into $location http://docs.angularjs.org/api/ng.$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: 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 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

[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

[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

[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

[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?

[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

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

[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 message

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] $valid in combobox

2014-02-12 Thread Diego Monteiro
Hi, My code not set the class error in a div. somebody knows why? form name=myForm novalidate role=form div class={*error*' : myForm.credencial.$dirty myForm.credencial.$invalid} label for=credencial class=col-sm-3 control-labelCombo:/label div class=col-sm-9 select

[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 expects

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] 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

[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 $httpBackendhttp://docs.angularjs.org/api/ngMockE2E.$httpBackend, but I find that is more work at the onset... angular.module('app') .factory('FooService', ['$q',

[AngularJS] Filter function input is undefined

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

[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? form name=myForm novalidate role=form div class={*error*' : myForm.credencial.$dirty

[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

[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

[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] 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 array

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 script reference to impress sources in the view template itself instead

[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 wondering

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 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

[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:

[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 $browserhttp://docs.angularjs.org/api/ng.$browseris not linked on the table of contents and moreover doesn't contain any content. You can find a link at the $timeout

[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

[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

[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* !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html lang=fr head meta http-equiv=Content-Type content=text/html; charset=utf-8 meta

[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

[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] 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: div star-rating

[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

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 iphone2...@malix.com 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.

[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 you

[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

[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

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