Questions tagged as 'angularjs'

2
answers

Implementation AngularJS consuming data provided by Laravel using CORS

I'm trying to create a web service in Laravel 4, which will be consumed by a mobile application using AngularJS. When I make AJAX requests with AngularJS, it gives Cross Domain error because it is in another domain. How to solve?     
asked by 16.12.2013 / 12:07
1
answer

Javascript and AngularJS - Good practices to capture data of a logged in user [closed]

Sirs, good afternoon. I would like to ask you which best practice you use to capture the data of a user logged in to a web application with a database. For example: Assuming that I created a site where the user signs up, logs in with his emai...
asked by 19.10.2018 / 18:50
1
answer

Call Method in Routes in AngularJS

I have a controller called ProductController in AngularJS, this controller should have two methods, one to list all products when I pass a URL and another method to bring product details when it is another URL. Example: /produto/:codDeparta...
asked by 24.02.2014 / 16:52
1
answer

angularJS $ http.get (localhost / test) does not work in Chrome

In my controller I have a $http.get(http://www.testesitelocal.com:18888/teste_json) which returns me the values of the test JSON. I make this request on my local machine. In Webview I did in JavaFX this works normal, but in Chrome it does...
asked by 25.02.2014 / 13:26
1
answer

Find element with dynamic class with ng-class

I'm adding classes using ng-class , but when I try to find this element starting from a directive, I can not find them. Link to a plunker with example code: link .directive('step1', function(loadTemplate) { return { link:...
asked by 25.02.2014 / 23:15
1
answer

Angularjs - add class to a link based on url with binding

I'm trying to add an 'active' class to my link as follows: <a href="#/requests/{{request.id}}/processes" active>Processes</a> That produces output (chrome console) <a href="#/requests/7cgSiSdaIR/processes" active="">Proc...
asked by 15.02.2014 / 23:13
2
answers

How to understand the MVC architecture in Angular 4?

Hello everyone, this is my first question and it's about Angular 4 . So I studied the Angular Js 1.x and I could fully understand where the MVC architecture fits into the framework , but did not feel the same in < in> Angular 4 . I know, t...
asked by 29.05.2018 / 19:45
1
answer

Date format error with input date

I have a form with date field, date. In 1a. Once I select a date and click Save, this warning appears in the console: MyHTML:<divclass="col-md-12" ng-controller="SaldoCtrl"> <form name="formSaldo" class="formSaldo"> &...
asked by 03.01.2018 / 19:18
2
answers

How to properly configure CORS in Spring Boot?

First I'll tell you what happens! I developed a simple Spring Boot project to show on screen a GRID having as Frond-End the Angle, the java API request is port 8080 and the Angular port is 4200, as each one makes different requests I have dec...
asked by 14.12.2017 / 10:05
1
answer

API on port 8000 and Angular on port 4200, how to solve?

My system is making a request on port 8000 aparti from localhost 4200 When a request is made by a protocol a domain on different ports of origin, which is my case the application Angular is on port 4200 the api java is on port 8000 in that case...
asked by 13.12.2017 / 12:01