Profile

Cover photo
Serkan Güneş
70 followers|20,675 views
AboutPostsPhotosYouTube

Stream

Serkan Güneş

Discussion  - 
 
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
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
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  - 
 
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...
Have him in circles
70 people
Başar Özgür Kahraman's profile photo
MuscleNerd's profile photo
Philip Mander's profile photo
Mindaugas Žakšauskas's profile photo
Annette Kwoh's profile photo
Amod Mulay's profile photo
Stephen Manton's profile photo
Ignacio Morejon's profile photo
Ben Ratcliff's profile photo

Serkan Güneş

Discussion  - 
 
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
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
1
Roie Schwaber-Cohen's profile photoSerkan Güneş's profile photoAlireza Ahmadi'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  - 
 
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
Stretch's profile photo
Add a comment...

Serkan Güneş

Shared publicly  - 
1
Add a comment...
People
Have him in circles
70 people
Başar Özgür Kahraman's profile photo
MuscleNerd's profile photo
Philip Mander's profile photo
Mindaugas Žakšauskas's profile photo
Annette Kwoh's profile photo
Amod Mulay's profile photo
Stephen Manton's profile photo
Ignacio Morejon's profile photo
Ben Ratcliff's profile photo
Basic Information
Gender
Male
Work
Occupation
Senior Java Developer
Links
Contributor to