Questions tagged as 'angularjs'

2
answers

How do I simply ping external sites returning status: 200, 400

I'm a beginner in JavaScript , AngularJS and jQuery . I have already broken my head here and could not resolve the following solution using JavaScript : I want to make a list of the sites I've developed, showing their real-time status usi...
asked by 25.11.2016 / 18:53
1
answer

JSON in PHP with existing fields printing as Null, how to solve? [duplicate]

I have a SELECT that is not returning me some fields, such as "Notes". In the following image I'm ready the array and see that it is like "Null" the observations field: MyreturnSQListhis:<?phpheader('Content-type:application/json');head...
asked by 27.03.2017 / 20:59
1
answer

How does data-binding work in AngularJS?

I looked for something that explains to me how the magic of data-binding happens but I did not find it. My question is how do view data for model propagate, how can it keep up with changes without setters and getters? I searched for someth...
asked by 05.01.2016 / 17:41
2
answers

Use token to access a platform

I have a web app and I'm accessing an APP in this way: .controller('LoginCtrl', function($scope, $ionicPopup, $state, $http) { $scope.data = {}; $scope.login = function() { $http.post('http://localhost:3000/login', $scope.data...
asked by 09.09.2015 / 15:21
2
answers

Disable Access-Control-Allow-Origin in Chrome and Firefox

I'm developing an app using ionic on the macbook with OS X Yosemite. When trying to send data via POST or receive via GET to a remote server, the error appears: Chrome:    XMLHttpRequest can not load link . In 'Access-Control-Allow-Orig...
asked by 11.08.2015 / 04:27
3
answers

Function in hyperlink

I'm running a function in the hyperlinks of my system, as shown in the code below: <md-menu-item ng-repeat="insumo in insumos"> <a href ng-click="verificar('mostrarInsumos', insumo.ins_cl_id, '1', $event)"> <md-butto...
asked by 15.02.2016 / 18:59
2
answers

Color Selected Line Angular JS and Bootstrap

How do I color the selected line on a table? I have the following code: <tr ng-repeat="p in produtos" ng-click="info(p)" ng-class="{'info': ??}"> I just can not find a condition to color only the selected line. Does anyone h...
asked by 24.02.2016 / 18:32
1
answer

Problems with localhost applications with AngularJS and NodeJS

I have some questions and problems trying to create a server with nodeJS . The issue is that I have an application developed with very simple AngularJS and I want to make another one in nodeJS which basically loads AngularJS . I crea...
asked by 03.08.2015 / 21:17
2
answers

List of dynamic checkboxes in Angular and JSON API

I'm having trouble rendering dynamic checkboxes with JSON API response. There are 2 ng-repeats: Bringing the list of categories in the data base, and; ng-model with the list of categories chosen. Below my HTML code; <ul class="l...
asked by 26.06.2015 / 22:08
1
answer

AngularJS - Directives: Element or Attribute

I'm new to angularJS and I'm seeing the directives part, and I see that there is the restrict element and restrict attribute. I understood what each one does, but it was not clear when to use one or the other, or both?     
asked by 06.02.2016 / 21:01