Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app = angular.module("aplicativo", []);
- app.value('myValue', {
- nome: 'AngularJS'
- });
- app.controller('controller', function($scope, myValue) {
- $scope.config = myValue;
- // Alterando o valor
- angular.extend(myValue, {
- nome: 'Javascript'
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement