Created
March 16, 2013 13:18
-
-
Save reite/5176320 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in my html: | |
<script> | |
angular.module('myApp').value('initData, | |
{myjson} | |
) | |
<script> | |
in my controller: | |
function MyController($scope, initData) { | |
..do something with initial data | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment