Profile

Cover photo
Serkan Güneş
64 followers|12,518 views
AboutPostsPhotosVideos

Stream

 
Hi Guys,

I got a weird problem with angular animations. I am using ngAnimate module for some part of my application. My problem is with ng-repeat or ng-class if the element already has a css transition if you remove it from model array it never gets removed from DOM.

I have just created an example using angular TODO exercise which should be hopefully familiar to people.

I have added a shake button. Before clicking on the shake button everything works as it is. After clicking the shake button and click archive button, archived items never get removed from DOM. 

http://jsfiddle.net/qLsSV/1/

Any help would be appreciated.

Kind regards
1
Add a comment...

Serkan Güneş

Discussion  - 
 
Can anyone tell me how to create model class templates that work well with angular?

I am currently defining the class template as a service and adding a $new method on it which returns an object which has all the desired fields and functions. Previously I used to define my class templates using  ".prototype" field on an JS object and created new instances using new operator. 

Any response is much appreciated.
1
Josh David Miller's profile photoSerkan Güneş's profile photo
5 comments
 
That's ok I meant just using the prototype based class without embedding inside a service. That would be harder to use in another class. 
Add a comment...

Serkan Güneş

Discussion  - 
 
Hi All,

Trying to write a dependency injection framework without using mirrors. 
Is there a way to instantiate a type without using mirrors. As far as I know dart2js has limited support for mirrors and this library is intended to be used at client side.
Any answer would be appreciated.

Kind regards,
1
Sergey Akopkokhyants's profile photoSerkan Güneş's profile photo
2 comments
 
+Sergey Akopkokhyants Thank you very much I'll check it out.
Add a comment...

Serkan Güneş

Shared publicly  - 
 
Yesterday I read a months worth of Google+ updates in 5 minutes. Wave goodbye to Google+ buzz.
1
David Armstrong's profile photo
Add a comment...
Have him in circles
64 people
Arcan Ergür's profile photo
Gordon Johnston's profile photo
Umut DURMUS's profile photo
Stein Gunnar Bakkeby's profile photo
Sinead Holland's profile photo
Erdem Eser Ekinci's profile photo
Ciaran Flynn's profile photo
 
Hi Guys,

I got a weird problem with angular animations. I am using ngAnimate module for some part of my application. My problem is with ng-repeat or ng-class if the element already has a css transition if you remove it from model array it never gets removed from DOM.

I have just created an example using angular TODO exercise which should be hopefully familiar to people.

I have added a shake button. Before clicking on the shake button everything works as it is. After clicking the shake button archived item never gets removed from DOM. 

http://jsfiddle.net/qLsSV/1/

Any help would be appreciated.

Kind regards
1
Alireza Ahmadi's profile photoRoie Schwaber-Cohen's profile photoSerkan Güneş's profile photo
5 comments
 
nganimate.org may help you. It provide some very useful animations. You may want to test their code too. 
Add a comment...

Serkan Güneş

Discussion  - 
 
Can anyone tell me who to create model class templates that work well with angular?

I am currently defining the class template as a service and adding a $new method on it which returns an object which has all the desired fields and functions. Previously I used to define my class templates using  ".prototype" field on an JS object and created new instances using new operator. 

Any response in much appreciated.
1
Add a comment...

Serkan Güneş

Shared publicly  - 
1
Add a comment...

Serkan Güneş

Shared publicly  - 
1
Add a comment...
People
Have him in circles
64 people
Arcan Ergür's profile photo
Gordon Johnston's profile photo
Umut DURMUS's profile photo
Stein Gunnar Bakkeby's profile photo
Sinead Holland's profile photo
Erdem Eser Ekinci's profile photo
Ciaran Flynn's profile photo
Basic Information
Gender
Male
Work
Occupation
Senior Java Developer
Links
Contributor to