Questions tagged as 'angularjs'

1
answer

#! in angularjs url

I made an application with angularjs, in the ngroute I have var appLogin = angular.module('appLogin', ['ngRoute', 'ngResource']) // Declared route .config(['$routeProvider', function($routeProvider) { // alert(JSON.stringify($routeProvider...
asked by 09.01.2017 / 23:14
1
answer

How do I pass data between controllers?

I want to make a navigation bar in my web, so, in the index I want to put the section where the user is located. The problem I have is that I do not know how to pass the variable to the MasterController from the Controller of each view, so th...
asked by 07.09.2016 / 10:40
1
answer

Group items from an array in Angularjs

I have an array with values of hours which, I present in a tag select as follows: Select 07:00:00 07:10:00 07:20:00 07:30:00 07:40:00 07:50:00 08:00:00 But I want to know how to group them in the following way: 07:00:00 - 07:10:0...
asked by 06.08.2016 / 00:34
1
answer

Clear the cache depending on the view with $ ionicHistory.clearCache ()

is there a way to eliminate the cache of the view you want ?, for example in javascript I want to delete the cache of the next view I want, to actulize the information of all products, but in another view returns to the view products and at that...
asked by 09.12.2016 / 21:25
2
answers

AngularJS request header field Content-Type is not allowed by Access-Control-Allow-Headers

Starting to use Angular JS and I need to make a post request to a server. I am making the request in the following way: var Informacion= JSON.parse('{"username":"--","password":"--"}') $http.post('http://--:8080/taller-bd-11/usuarios/login',...
asked by 21.12.2015 / 06:35
3
answers

AngularJs create a drop-down sidebar menu

Hello community, I am trying to create a pull-down menu in a sideBar for the administrative part. The problem that results is that when I click on a sub-menu all the sub-menus are displayed and vice versa. Here is my code. I hope you can help me...
asked by 11.07.2016 / 14:24
1
answer

Refresh $ scope of angular in a jQuery function

I have an angular controller and I need a jQuery function inside this one that is responsible for knowing if the user was inactive for x seconds. Here I show you the code that I have: var modulo = angular.module('appModule',[]) .controlle...
asked by 27.09.2016 / 23:56
1
answer

Why do I create the properties in the wrong scope between parent and child controllers?

Good morning. The case is this, I have this html view: <!-- VISTA HOME/INDEX --> <div ng-controller="generalView" class="index"> <!-- as vm --> <div class="container-fluid mainContainer"> <div clas...
asked by 29.09.2016 / 14:11
2
answers

How to build a URL relative to the port but the same hostname?

I have made a front application with angularjs and I start it with Grunt. On the other hand I have the Back part that I raise it with a Tomcat v8.5 Server. To make the calls to back I use $ http of AngularJS using the routes that have provide...
asked by 16.02.2017 / 11:52
1
answer

How can I run a controller without opening the view?

I am working with AngularMaterial specifically with $mdDialog when I enter the dialog my controller works, now what I need is to be able to run the controller without opening the view of the dialog. this is the function that contains the...
asked by 28.09.2017 / 18:27