Skip to content

Instantly share code, notes, and snippets.

@bq1990
Created November 23, 2014 18:38
Show Gist options
  • Save bq1990/345a0303cef95aad5d9a to your computer and use it in GitHub Desktop.
Save bq1990/345a0303cef95aad5d9a to your computer and use it in GitHub Desktop.
Bootstrap Asp.Net constants into Angular
(function (app) {
app.constant('settings', @Html.Raw(Model.SettingsJson));
})(angular.module('@Model.AngularModuleName'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment