Hi everyone!

I've been a longtime lurker on the Clojurescript list, but since I'm rather 
stumped at the moment I'm coming out of my shell.  

First off, I'd like to genuflect to both Sweden and wherever Mike Thompson is 
from.  You guys have built something really cool, and I'm embarrassed to bolt 
something truly ugly onto such elegant software.

How ugly?  Well, Angular ugly.  The framework that only a mother could love.™ 
Why would I do I such a thing?  Well, I've been developing apps for the past 
couple of months and I just can't believe how nice Ionic 
<http://www.ionicframework.com/> is.  It just works (most of the time) and I 
can target multiple platforms easily.  And if you pretend Angular doesn't 
exist, it's somewhat bearable.  

Which brings me to my problem: I can't figure out how to get a Reaction to kick 
Angular into doing ... whatever it is that Angular does (digesting?) to update 
the view.  I'm guessing Reagent (or maybe React) deref's the ratom and that's 
why this whole thing works?  Angular just sits there like a lump of ugly coal.  

So, at first I tried doing things the "Angular way", using $scope.$watch's and 
it leads to a rather hilarious demo:

http://clojure.tempesta.io/Re-Frame-Angular-Test/angularWatchSubs.html

[I'm not exactly sure what's going on there, but I'm guessing that the watches 
are always one value behind.]

So, then I tried directly watching the app-db atom, and it works perfectly:

http://clojure.tempesta.io/Re-Frame-Angular-Test/angularWatchAppDB.html

But I think that's not the right way to do it.  Any ideas?

Code is on Github here:
https://github.com/seantempesta/Re-Frame-Angular-Test

Both Angular examples and the Reagent version are on this test page:
http://clojure.tempesta.io/Re-Frame-Angular-Test/

Sean

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to