Questions tagged as 'angularjs'

2
answers

how to get an object from an array through id with angularjs

I pass the object id that comes from a ng-repeat through $ stateParams more then I would need to get the array object for the id that comes from the URL to display the information. My question is if I have to get this JSON object like I do? And...
asked by 02.03.2015 / 16:23
1
answer

Add new element to array

I have a multi-contact directory, where each contact can have one or more dynamic fields. You can define the name of these fields, and they are different between the contacts. For example, if Contato 1 has the campo 1 field,...
asked by 28.07.2015 / 20:02
2
answers

How to replicate elements dynamically?

I'm trying to create a series of repeating elements without knowing the amount of repetitions that will be needed. I have an input in which the user will report a numerical value equal to or greater than 1 that will reflect the amount of repetit...
asked by 05.05.2014 / 20:56
2
answers

Where to put the business rule in the angle?

I love programming web and mobile apps with angularjs. But I'm tired of spreading my business rules by controller and factorys. I miss being able to create my objects with their respective responsibilities, in addition to controllers services to...
asked by 03.06.2016 / 02:40
3
answers

How to fill a select with angular using materialize

I'm trying to fill a select with data from my base The problem is that I have to always select select once for the data to load. How can I resolve this problem? HTML <form class="" name="formulario"> <div class="row"...
asked by 12.07.2016 / 23:57
1
answer

Problem trying to connect to a Hub SignalR + Angularjs

I have a project with WebApi , SignalR and Angularjs where I do some queries and insertions in real time. Everything works fine when I start the file index.html direct when running the application, however if I try to...
asked by 05.07.2016 / 22:13
2
answers

How to use Materialize with Angular?

I'm developing a project, but even though it imports all the CDNs, the angular and the materialize, the materialize JavaScript does not want to work along with the angular, is there some kind of conflict? Importing files: <script src="ht...
asked by 22.06.2016 / 23:58
2
answers

how to change the chart type using chart.js?

I'm developing an application that helps me build graphs, and was thinking of doing in a way that the graph is built dynamically as the user inputs information, the first one being the type of chart (if it's line, of bar, pizza, etc.) I made a te...
asked by 14.05.2016 / 17:11
1
answer

Error while validating login and redirecting to home

I'm using wamp 2.4 and trying to implement a login in AngularJS. However, when I click the submit button the refresh of the page occurs but it does not change to home . The session is always saved even though the user and password are...
asked by 11.04.2015 / 03:43
1
answer

Reapply function in 2 different controllers

I have the same function in 2 different controllers. This is not a good practice because it will complicate code maintenance. How do I reuse the same code on different controllers? Using "factory", "service" ...? I have deleted the dire...
asked by 06.03.2015 / 12:23