Posts by Luiz Fernando Dubiela • 95 points
6 posts
- 
		1 votes2 answers846 viewsA: Reading json file via Angularjs serviceI discovered the mistake;; I was declaring a Factory as a service, it shall have the following structure module.factory('MyService', function() { var factory = {}; factory.method1 = function() {… 
- 
		2 votes2 answers846 viewsQ: Reading json file via Angularjs serviceI am trying to read a Json file via a service I created: Service: App.factory('service', function($http) { var promise; get: function() { if (!promise) { promise =… 
- 
		1 votes1 answer293 viewsQ: Directive is not being called, Angularjs custom validatorI have the following directive: .directive('validateCPF', function () { return { require: 'ngModel', link: function (scope, element, attrs, ctrl) { ctrl.$validators.cpf = function (modelValue,… 
- 
		1 votes1 answer675 viewsA: form. $setPristine() does not work + AngularjsI found out what it was... when I pass an object that is in my scope as parameter to another Cope or the same Cope has no way to modify the object, in case I decided implying a directive.… 
- 
		0 votes1 answer675 viewsQ: form. $setPristine() does not work + AngularjsI am trying to do a cleaning in a form, used $setPristine() from the Angularjs... When trying to clean up a fluffy with: $scope.reset = function(){ $scope.form.$setPristine(); $scope.perfilDeAcesso… 
- 
		5 votes1 answer862 viewsQ: Javascript Startup of ObjectsI’m new to Javascript, and I’m using a framework Restangular written with Angularjs for HTTPS requests. I’m having a hard time initializing a literal object, with the following structure:…