Questions tagged as 'angularjs'

1
answer

Ng-repeat by passing a number

I want to set a select whose options will be generated by a ng-repeat, but for this I want to pass a number, for example if I pass the number 5 in the variable will be set 5 options with values 1,2,3,4 , 5. <md-select ng-disabled="!novoCada...
asked by 07.11.2017 / 03:01
1
answer

Read file txt

I am creating a WEB application and need to read a txt file that will be provided by the user. The code I'm using to read is not working and I can not find a way to read it elsewhere. // Código dentro do controller $scope.imprimir = funct...
asked by 22.08.2017 / 00:15
3
answers

Transfer the value of a variable to Ctrl + C

Does anyone know if there is a way to transfer the value of a variable to Ctrl + C? I'm working with AngularJS and within the scope I have a variable that I would like to pass to the clipboard, but I can not find anything that will help me....
asked by 15.09.2017 / 20:51
1
answer

AngularJS Filter multiple table fields

Personal I have a table where you can filter your data using filter, where I pass the filter information through an input: <tr ng-dblclick="openUpdateCadProduto(produto)" ng-doubleclick ng-repeat="produto in listaCadProduto | limitTo:barLi...
asked by 11.08.2017 / 15:18
1
answer

Select md-option with ng-click

I have a page listing some job openings. Below these vacancies I have a form and in this form there is an option field to select the vacancy of interest. If the user clicks the vacancy of interest above, automatically in the form this option mus...
asked by 08.06.2017 / 19:22
1
answer

How do I trigger a method when the user presses the delete or return key?

In my form I have a client field. I need, when the user presses the delete or return key, a method that I have in my controller is triggered, how can I capture if one of these keys was pressed? I'm using AngularJs this is my input: <i...
asked by 28.07.2017 / 20:31
1
answer

Routes Angular-JS

Good evening! I'm new to single page application technology, and I'm finding it difficult to render my pages in Angular one, I have a button that clicks, shoots a route, it tries to load, but it does not appear on the page, I've already research...
asked by 28.03.2017 / 04:18
1
answer

How to find values and apply attributes using AngularJS?

I need to go through two specific columns of a table, find the (-) and sum (+) symbol to apply one of the following rules: For the subtraction symbol (-) color the text red; For the sum symbol (+) color the text green. This action shoul...
asked by 19.02.2017 / 02:00
1
answer

Inject $ state (ui-router) into $ http interceptor is causing circular dependency error, how to solve?

What do I need: I need when the http request returns error 401 or 403 the user is redirected to login screen. Problem: The problem happens when I inject the $ state into my factory, it causes the circular dependency error:    Unca...
asked by 03.02.2017 / 12:04
1
answer

Change order of objects in the array by dragging rows from angular table JS

I have a table and using jquery ( sortable ), I would like that when I drag the line by modifying the html of the table, the array Example:    CAMPO1       CAMPO2 /// DRAG THAT DOWN       CAMPO3...
asked by 25.01.2017 / 00:08