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
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
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
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({
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
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
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
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
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
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
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
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
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
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?
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
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
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
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;*
*});*)
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
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
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
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
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',
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
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
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
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
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; }});});
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
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
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
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
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
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:
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
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
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
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
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
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:
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
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
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.
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
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
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
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
47 matches
Mail list logo