Questions tagged as 'angularjs'

1
answer

Paging logic with angular and mysql

I would like to know how to implement a paging logic in the database using mysql and angular on the front end with ui-bootstrap or dirPagination. For example, getting 10 in 10 on the bank using LIMIT and OFFSET . My question is in t...
asked by 07.11.2016 / 11:31
1
answer

Angular Panels

I would like to make a page in Angular that looks like the image below: That is nothing more than a page with several panels, which I will add a list of information inside them ... What component can I use to achieve this result?     
asked by 01.02.2017 / 16:43
1
answer

How to display a menu according to the type of user logged in with Ionic / Angularjs?

Hello, I have two types of users: buyer and seller. How to display a menu according to the type of user logged in with Ionic / Angularjs? Currently, and it does not work well, I'm putting in every menu item an ng-show: ng-show="permissao...
asked by 01.02.2017 / 13:48
2
answers

How to use a $ scope variable within ng-class

I have the following code: <a ng-class="{'text-{{color}}-6': menu == '#background'}" href="#background"> My Menu </a: It works, at first it adds the text-red-6 class to the element. But when I change the color of $...
asked by 04.10.2016 / 14:49
1
answer

Policy to detect click outside an element?

In AngularJS, we have the directive ngClick , which is used to execute an action when an element is clicked. I would like to create a directive, called ngClickout so that when the click occurs outside the element, it performs an...
asked by 26.09.2016 / 15:49
2
answers

Destroy AngularJS function

I have a page in my project that contains several categories and in each category, it has a Flexslider with the images. Each category is displayed once and clicking another one, the previous one is hidden and the one clicked appears, a scheme si...
asked by 08.09.2016 / 13:27
2
answers

How to take and store an array of data only if Quantity 0 in Ionic or Angular?

I would like to when I click on the "Continue Order" button to pick up only items with Quantity > 0, store in an array of new objects. My View: <ion-view view-title="Comprar Bebidas Adicionais" hide-nav-bar="false" > <ion-...
asked by 06.09.2016 / 15:54
1
answer

View - Single Page Application

When I discovered the SPA style I was very excited, but I was researching on some frameworks that do this, I saw that they are mvc's, but totally customer oriented (front) and this did not really please me, because my focus is to deepen on the s...
asked by 14.09.2016 / 16:47
1
answer

How to retrieve parameters in php passed by $ http ({... data: ...?

I have my controller that requests the login: app.factory('LoginService', function($http, $location, SessionService) { return { login: function(data, scope) { $http({ method: 'GET', url: 'http://localhost:88...
asked by 27.11.2016 / 19:25
2
answers

Variable loses value after leaving Promisse

Hello, I'm having the following problem, I have a variable that should store the data coming from a promisse, so that this data can be used in other functions, but for some reason the variable saves the promisse data only when this promisse is ru...
asked by 18.08.2016 / 13:40