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...
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...
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 ==...
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...
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...
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...
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...
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) {...
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...
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...