Skip to content

Instantly share code, notes, and snippets.

@AFelipeTrujillo
Created February 24, 2016 22:18
Show Gist options
  • Save AFelipeTrujillo/27a6d3982ab0edbea856 to your computer and use it in GitHub Desktop.
Save AFelipeTrujillo/27a6d3982ab0edbea856 to your computer and use it in GitHub Desktop.
<div ng-app="app" ng-controller="controller">
<p>
Default Value: {{value}}
</p>
</div>
var app = angular.module('app',[]);
app.value('defaultValue',100);
app.controller('controller',function($scope,defaultValue){
$scope.value = defaultValue
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment