Skip to content

Angular directive for attaching server-rendered data to $rootScope

Notifications You must be signed in to change notification settings

inca/ngui.attachData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Passing server-rendered data to Angular

<script type='application/json' attach-data='user'>{ "name": "Joe Bloggs" }</script>

In this example $rootScope.user will become { name: 'Joe Bloggs'}.

License

MIT License © Boris Okunskiy 2014

About

Angular directive for attaching server-rendered data to $rootScope

Resources

Stars

Watchers

Forks

Packages

No packages published