zurb/foundation-apps — pull request #354 by MikaAK (2014-12-19 23:59:40+00:00)
Title: [codebase] [feature] Make Foundation usable without requiring tons of files

The directives for foundation for apps should be useable outside of the entire framework. I've created a few gulp tasks to compile the directives and helping things to `/compile/foundation-tpls-min.js` and `/compile/foundation-tpls.js`.

I've used [ngHtml2Js](https://www.npmjs.com/package/gulp-ng-html2js) for this.

### Errors
Line 39 `mediaQueries[key].replace` would fail because `mediaQueries` was not converted from a string to JSON properly. Instead it the key was the JSON string and the value was null.

### My Fix
I changed the code inside `js/angular/services/foundation.core.js` in the `parseStyleToObject` function. I refactored the method instead of manually parsing the string to use the `JSON.parse` method.