Questions tagged as 'angularjs'

1
answer

Timer between two angular dates

Let's say I have two dates: 2015-11-13T08:00:00 and 2015-11-13T10:00:00 , as you can see there is a difference of two hours between these dates. I would like to put a timer in my view that shows this difference. I tried to adapt...
asked by 13.11.2015 / 11:23
2
answers

Extract JSON object item with Angular.js

I have an Angular app that uses the Maps API to fetch latitude and longitude, but I can not get latitude and longitude separately. My application works as follows, the user types the zip code and the system using the ViaCEP API loads all data...
asked by 10.03.2016 / 20:16
1
answer

Policy as function parameter?

Is it possible to set directives as parameters of a function already on the html page? I tried to serviceLogin({{login.user}},{{login.pass}}) but I believe it is not the correct one     
asked by 15.10.2015 / 22:07
1
answer

Form with FIPE Table API using Angular

Speak up. I am a beginner in Angular and would like help with this form. <html ng-app="app"> <head> <title>Teste</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js"><...
asked by 01.03.2016 / 16:34
1
answer

What warning is this on the console using AngularJS?

I'm trying to run a simple code with angular and this warning appears on the console:    Uncaught Error: [$ injector: modulerr] link $ injector / modulerr? p0 = app & p1 = Error % 3A% 20% ... angular.js: 38 Here's my app.js file: var...
asked by 20.01.2016 / 18:58
3
answers

Undefined error while reading 'post' property in AngularJS

I have the following code: <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script></head><body><formng-submit="submit()" ng-controller="myForm"> Nome<...
asked by 07.08.2015 / 21:11
1
answer

Prevent duplicate entry in a list using AngularJS

HTML: <div class="container" ng-controller="ListaComprasController"> <div class="row"> <div class="page-header"> <h1>Lista de compras</h1> </div&g...
asked by 05.11.2015 / 16:16
3
answers

AngularJS vs JQuery input mask

I have ng-repeat and I need the input field to have the following format:    9,999.99 Code : <tr ng-repeat="item in estado.tabela | orderBy:'ano'"> <td>{{item.ano}} </td> <td> <inpu...
asked by 15.04.2015 / 15:49
2
answers

How to use directive templateUrl with external controller?

I'm decoupling some components and I'm not sure when to create a controller linked to the template. I have for example the Login screen, in my directive I do: app.directive('appLogin',function(){ return{ scope: {}, restrict:'E',...
asked by 20.04.2016 / 16:30
2
answers

How to create an abstract route with global controller for your children in AngularJS

I am creating an application where I will create something similar to a wizzard of windows forms and for this I am using a routing as follows: .state("vendaOrcamento", { url: "/vendaOrcamento", abstract:true, templateUrl: "templates/come...
asked by 11.09.2015 / 17:05