Questions tagged as 'angularjs'

0
answers

Problem setting angulajs in Nginx

I am not able to configure the angulajs in Nginx. I am using a Centos7 linux machine and would like to set the angle to be able to learn. Follow the nginx.html configuration file user nginx; worker_processes auto; error_log /var/log/nginx/e...
asked by 17.10.2015 / 05:00
1
answer

Update Data Binding in NavBar after logging in

I have navbar which is included in the index.html page <body> <div class="container"> <div ng-controller="colaboradorController" ng-include="'public/views/navBar.html'"></div> <div ng-...
asked by 30.09.2015 / 16:36
1
answer

Call Laravel method 4 using Angularjs

I have the following angular route structure: .when('/', { redirectTo: '/pages/signin' }) .when('/:page', { // we can enable ngAnimate and implement the fix here, but it's a bit laggy templateUrl: function($routeParams) { retu...
asked by 18.08.2015 / 18:38
1
answer

Modal W3.CSS conflicts with AngularJS [closed]

I'm trying the AngularJS that until then used Bootstrap CSS. But the W3.CSS uses an anchor to open, already AngularJS interprets the anchors as routes and redirects to the route . As an otherwise , it redirects to / and...
asked by 03.09.2015 / 14:57
1
answer

UTF-8 coding does not work [closed]

I have a seemingly simple problem but it has given me some work here. I'm developing a single page application using AngularJS , on page index.html I have tag <meta charset="UTF-8"/> , and like all partials are inject...
asked by 02.09.2015 / 15:06
0
answers

How to test private functions?

I have a controller with some functions: angular.module('teste.controllers') .controller(TestCtrl, function($scope){ var vm = this; vm.funcTest = function(){ return 1 + 1; } function _testSoma2(){ return 2 + 2; } })...
asked by 15.09.2015 / 16:46
1
answer

Receive correct $ index after filter use

Hello, I have a gallery of images that contains a search box, basically when the user clicks on an image opens a lightbox with that image. I'm basically passing the $ index to a function that opens the item in that list with the $ scope...
asked by 07.08.2015 / 17:40
1
answer

App Cordova does not work as expected

I made a simple application using Apache Cordova in Visual Studio 2015 , and added AngulaJS . When I test the Riple emulator works as expected: ThenIgeneratetheAPKtotestonthephysicalsmartphone,forthisIusethecommand:cordovabuildandro...
asked by 04.09.2015 / 15:25
1
answer

Array filter within an object

1 I have an array of travel objects 2 each trip has an array of users (travelers) I need to create a filter to list travelers I created a filter for the destinations, but for the users it is not right. Anyone have any tips? <script> va...
asked by 02.07.2015 / 15:42
1
answer

Test method of an AngularJs controller with promise using Karma, Mocha, Chai, Sinon

I'm not able to test the code that runs on then of promise I have the following controller: class Product extends Controller constructor: ($scope, productService) -> $scope.product = productService.new() $scope.products = []...
asked by 11.06.2015 / 21:33