Questions tagged as 'angularjs'

2
answers

get the data of an array in angularjs

I have the following array : vm.model= {"left":false,"middle":true,"right":false} From which I want to obtain the value of each item of the arrangement and save it in the Database , but I do not know how to obtain for example left...
asked by 25.06.2017 / 09:09
1
answer

How can I avoid XSS and CRFS attacks on my php page with angularjs? [closed]

On my website I want to avoid these types of attacks, I need your help because I do not know how to mitigate html injections or other ways to change the html to make requests by dea. It should be noted that the web service was created with ph...
asked by 28.06.2017 / 01:01
1
answer

Change color of an ionic button 2

I am trying to change the color of a button when it is clicked, I have managed to change all the buttons but I can not get it to only change the one I click. .html <ion-content padding> <button #button1 [color]="myColor" ion-but...
asked by 12.06.2017 / 23:23
1
answer

type of binding in angularjs

I have the following code (function () { 'use strict'; angular .module('socialChat') .component('messageItem', { controller: 'MessageItemController', bindings: { chatUser: '<'...
asked by 16.05.2017 / 22:44
1
answer

ng click using angular and google maps

Good afternoon, cordial greeting, I wanted to comment that I have the following problem; I'm working with angular and google maps with the ng-map directive and I have my html, my app.js and my controller.js and the ng click does not work for me...
asked by 27.04.2017 / 21:15
2
answers

Convert the following line from jquery to angular (addClass and removeClass)

I need to convert the following lines (which when clicked check which is the active class and change according to which is ..) Thank you very much already. $(".x-navigation-minimize").click(function() { if ($(".page-sidebar .x-navigat...
asked by 28.04.2017 / 22:03
1
answer

Integrate Firebase into ionic v1

Hi, I have problems integrating Firebase in my ionic v1 app. The way I am integrating it is as follows: I create a config.js: angular.module('starter.configs', []) .constant("CONFIG", { "FIREBASE_API": 'apiiiii******+', "FIREBASE_AU...
asked by 23.02.2017 / 16:31
1
answer

For manner in an array in angularjs

Hi, I have a WS that contains dynamic fixes and I need to save all the variables that have the status 'reserved' so I can use them later. The web service returns these data:    [{"id": "3", "rut_medical": "12883277-3", "date_programmed": "...
asked by 22.02.2017 / 02:56
1
answer

How to print html in angular

Ok friends, I'm using angular and jquery. I'm running a ng-repeat . <div class="col-sm-6 col-md-4 col-lg-3" ng-repeat="hab in habilities"> <div class="card custom"> <div class="card-block"> &l...
asked by 25.02.2017 / 21:44
1
answer

Angular, update value from javascript [closed]

I have been working on angular and today I have the need to modify a scope value from a javascript function, however I have not found an efficient way to do it from outside the controler, Does anyone know how it could be done?     
asked by 09.02.2017 / 20:43