Questions tagged as 'angularjs'

1
answer

Inheritance does not work when using the angular-ui-router state

I have the following configuration for the routes: $stateProvider .state('login', { public: true, url: '/login', templateUrl: 'app/src/components/bo/areas/login/login.view.html', controll...
asked by 23.08.2016 / 12:50
1
answer

Create list sorted by letter with AngularJS

How can I create a list sorted by the initial letter using AngularJS? I have several categories in a json file and would like to list them by started blocks. Blocks ordered like this: A Academy Animals B Bars Beauty and...
asked by 26.07.2016 / 05:01
1
answer

doubts with if else in java script

I'm using AngularJs and I have this method $scope.login = function (email, usuario, senha) { $http.post("/Login/login", { email: email, usuario: usuario, senha: senha }) .success(function (data) { debugger; if (data ==...
asked by 01.08.2016 / 00:42
1
answer

Node.js and Express - TypeError: Can not read property

I'm getting the following error in the console: TypeError: Can not read property '_id' of undefined I'm reading the book "Mean Full Stack Javascript ..." from the code house. During the development of the application presented in the book, I...
asked by 30.07.2016 / 06:49
3
answers

Angular Scope with apply in ng-init

Hello, I have the following problem, I have this function that receives data from an internal database and stores the information in $scope.dados , I can show the $scope.dados values normally on the screen. The problem comes at th...
asked by 19.07.2016 / 18:25
2
answers

Run code before starting services - AngularJS

Is there a way to run a code that runs before services? Because I want to use the $http.defaults.headers function before starting the services so that I can instantiate the header on all services that I request, but it seems like it lo...
asked by 20.07.2016 / 21:37
1
answer

Syntax query not Angular

I'm starting in Angular and in some cases I saw that parameters are passed in the bracket of the module and in other cases in the function, and in the function I have already seen 2 forms of declaration. Example Module: angular.module('start...
asked by 21.07.2016 / 16:46
2
answers

Insert in HTML and with AngularJS functions

People with problem when I enter a HTML that contains a ng module, and when I click to execute nothing happens. See the Code: //HomeCtrl.js module.exports = function($scope) { // Create Note $scope.create = function(e) {...
asked by 11.09.2016 / 20:14
1
answer

Problem when using LIKE of Sql in AngularJS

I've been having trouble searching for my app using AngularJS for a few days now, and I've been able to find out why: In query SQL with LIKE , it just is not getting the parameter as it should. > My function looks like this...
asked by 25.08.2016 / 17:36
2
answers

MVC - pass a php variable to the angular.js controller

I am making a listing and want to pass the values of a model to the algebra script that is in the view. Model: function getAllDisplayable_all() { $this->db->select('id_menu, nome, descricao, preco, foto'); $result = $this-&g...
asked by 09.06.2016 / 16:25