Questions tagged as 'angularjs'

1
answer

Insert controller into the application from the requested template

I'm creating an angular application where, on the home page, I use a controller to do some validation before proceeding with the application login. My question is, do I have to "instantiate" the controllers of each template only when I request t...
asked by 15.05.2015 / 17:35
2
answers

How to execute a function after AngularJS render the content in the template?

I would like to call a function after AngularJS renders the contents in the template, just as it removes display:none when using ng-cloak . function executaAposRenderizar(){...} app.controller('lista', ['$scope', function($scope)...
asked by 20.04.2015 / 22:07
3
answers

Get URL paths

The API is structured something like http://localhost:8181/api/collections/{id} , my question is: Sometimes I need to get this {id} and I'm doing a replace. Is there any way to configure this url for production, homolog and localhost en...
asked by 31.07.2015 / 13:52
1
answer

How to set a value in select that is set with ng-options

My HTML looks like this: <select ng-model="cliente" ng-options="t.value as t.displayName for t in clientes"></select> In the Controller of my JS I have: $scope.clientes // objeto onde tem todos os clientes para alimentar o sel...
asked by 23.05.2015 / 01:40
1
answer

Do not allow e-mail registration and / or duplicate user AngularJS

Please, I can not finish this simple code ... rs Should return the error "User already registered" or "Email already registered", please help me correct the function below, I am a little lay, but I am learning. I would like to present the err...
asked by 30.07.2015 / 19:29
1
answer

Problems with XMLHttpRequest AngularJS

I have a $ http.get request in my application as it can be seen at AngularJS ng-repeat does not return data, returns always empty But I'm getting a Warning in the browser console with the following message: Synchronous XMLHttpRequest on t...
asked by 07.04.2015 / 23:10
1
answer

Fill input dynamically with angle

Friends, help me make a script in which I can add words to an input, at the click of a button. The words should be side by side and separated by virgular:    word1, word2, word3 This gives me an input, as I add, with the filled-in value,...
asked by 24.03.2015 / 13:06
1
answer

Filter with AngularJs and Gulp

I'm creating a filter for the angle using the Gulp compiler however I'm having an error and when parsing the compiled code it looks like it's compiling something wrong, what could it be? Filter: class StrSplit extends Filter contructor:...
asked by 27.03.2015 / 14:05
3
answers

Variable appearing as html - IONIC FRAMEWORK

I'm starting on Ionic, I followed this tutorial , everything However, when I go to index.html and put the variable {{firstname}}, it shows in the browser as if it were going through html, unlike it after writing {{firstname}} and not the date o...
asked by 02.04.2015 / 23:00
1
answer

AngularJS - Unknown provider

I'm trying to create a Service in AngularJS but the error is occurring: Error: [$ injector: unpr] Unknown provider: $ scopeProvider
asked by 11.05.2015 / 04:52