Questions tagged as 'angularjs'

2
answers

Doubt angularjs with array

How do I get only the id and key ? { "type": "champion", "version": "6.3.1", "data": { "1": { "id": 1, "key": "Annie", "name": "Annie", "title": "a Criança Sombria", "info": { "attac...
asked by 16.02.2016 / 18:38
1
answer

double binding is not working with AngularJs

<div ng-controller="TestController"> <div class="col-md-6 col-md-offset-2"> <table class="table table-bordered"> <tr ng-repeat="column in columns track by $index" > <td>{{ colu...
asked by 06.12.2016 / 17:56
1
answer

Angle function does not load in time?

When I try to use the following code in a website template: <img src="{{getImage(estabelecimento)}}"> The image loads correctly, but before loading this error appears in the console:    GET link 404   (Not Found) Everything l...
asked by 14.09.2017 / 08:40
4
answers

User Permission - Angularjs

I have permission levels for users on my system: admin user and basic user. I have a page that only admin users can access. I put an ng-if="isAdmin ()" in the hide menu if you are not an administrator. It works correctly, but if by chance...
asked by 23.08.2017 / 04:17
2
answers

How to execute a function after entering the Controller in AngularJS?

I have the following problem, I have more than one angular navigation state that uses the same controller, like this: .state('app.estado-navegacao-1', { url: "/estado-navegacao-1", views: { 'menuContent': { templateUrl: "template...
asked by 30.05.2016 / 19:17
1
answer

data bind with Arrays - AngularJS

Well, I'm having a hard time figuring out the best way to resolve this: I have several skills and I need to save each skill with your score and skill id for each candidate. I have a ng-repeat that lists all the skills in the form of the ca...
asked by 08.02.2016 / 15:21
2
answers

Regex string javascript

I need a regular expression that removes all special characters, and spaces of a string if it is a letter with an accent remove only the accent. Would anyone help me?     
asked by 22.02.2016 / 02:34
2
answers

How to change the value of an input by a factory?

I have a <input type=file> and I want to add the path of the image to this input to send the form to my webservice. I can get the image path through a factory and I can not change the value of this input by adding the path. How d...
asked by 21.11.2015 / 01:44
1
answer

textContent Material Designer Angular JS

I'm using Angular Material Dialog and everything is fine, but when I put textContent it returns the following error: CONSOLE ERROR $mdDialog.confirm(...).title(...).textContent is not a function JS var confirm = $mdDialog.c...
asked by 04.12.2015 / 14:17
2
answers

How to set a timeout for a request?

I am making a JSONP request for a webservice. But sometimes the request takes too long. Since I am showing the user a load status, I would like to abort the request if it passes 10 seconds. How do I set a timeout for a request in Angul...
asked by 18.11.2016 / 13:31