moxie-lean / ng-web-app

Front-end component of a web app based on the modular LEAN concept.
http://getmoxied.net/lean
MIT License
6 stars 0 forks source link

Data from JSON is stored in markup #41

Open mitogh opened 8 years ago

mitogh commented 8 years ago

Steps to reproduce and a minimal demo of the problem

Open an instance that makes request to a JSON APi

Current behavior

All data is stored in markup

Expected/desired behavior

I think is best to share this data across directives thought JS instead.

Other information

Video: http://snaps.getmoxied.net/2A2q1B1O1E1w

adamf321 commented 8 years ago

It's because we use directives with isolated scope and pass the variables by "@" (interpolated). I agree there might be a better way...