Questions tagged as 'angularjs'

1
answer

Select component with ng-model, relationship between tables

I have a select component <div class="form-group col-md-4"> <label>Município:</label> <select ng-model="distrito.entidade.id.municipio.id.nome" class="form-control" > <option value="{{...
asked by 27.09.2017 / 22:10
1
answer

Controller by angular file js [closed]

(function () { 'use strict'; modulo .controller("CarregaCamposController", CarregaCamposController) .service("CarregaCamposService", CarregaCamposService); function CarregaCamposController($scope, CarregaCamp...
asked by 28.09.2017 / 14:23
0
answers

How to fix the error: SyntaxError: JSON Parse error: Unexpected identifier "undefined"

I'm getting the following error when trying to test my function:    SyntaxError: JSON Parse error: Unexpected identifier "undefined" The function is this: function onGetInstanceName(e, args) { rootScope.instance_name = _storage.loca...
asked by 16.10.2017 / 19:00
0
answers

How to export the angular web app 2 on the remote server?

Hello everyone. I made my first angular web app 2 and now I'm trying to put it on a remote server to access via url. I tried using ng build -prod and I passed the dist folder that was generated to my server, but it did not work. Help me! Thanks...
asked by 16.09.2017 / 03:10
0
answers

popup angular4 not working?

Well, I'm having a problem with angle 4. I'm trying to use the ng2-opd-popup component. It installs right, but when I declare it in app.modules.ts it returns the following error:    ERROR in Error encountered resolving symbol va...
asked by 06.09.2017 / 22:03
0
answers

How to use $ rootScope. $ on?

I do not know how to set $ rootScope. $ on in my unit test. Whenever I invoke a function it gives me the following error:    TypeError: Attempted to assign to readonly property. The test is being done as follows: describe('Testing Event...
asked by 21.09.2017 / 20:13
0
answers

For a defined object is giving the error of indefinite in angularjs

I'm getting an error while performing the following test: it('testing if the onStateChangeErrorHandle function is defined', function(){ expect(rootScope.$on).toBeDefined(); srv.onStateChangeError({$rootScope: rootScope}); });...
asked by 21.09.2017 / 15:31
1
answer

AngularJS scope variable not updating

I'm having a bizarre problem with a variable I created in HTML itself with AngularJS. I even tried to instantiate it on the Controller to see if that was the problem but no. I have a button that in ng-click I say that this variable (wh...
asked by 21.09.2017 / 20:15
1
answer

Block navigation until validate token login, using Spring, AngularJS and JavaScript

I have a question .. I've implemented a login validation using JWT. It works fine, it generates the token within the requests. However, in the login page, if in the URL I put the next page the system lets go. Login COntroller @RestControlle...
asked by 18.09.2017 / 20:20
3
answers

Validate three fields

I have three fields and I have to validate by sending the message ng-mensage of the first field whenever a value is changed and preventing the form from being submitted. The sum of the field número 2 and número 3 can not...
asked by 19.09.2017 / 09:00