Questions tagged as 'angularjs'

2
answers

What does [] mean in angular.module

I'm a beginner in AngularJS and started reading about modules in an application. When I want to create a new module, I write the following line of code: var myAppModule = angular.module('myApp', []); As far as I understand, the myApp...
asked by 31.01.2017 / 17:43
3
answers

Why does AngularJS default to # in the URL?

I had a question and would like to know why Angular uses # in the url?     
asked by 21.12.2016 / 12:54
3
answers

How to create the service of a controller?

Hello, I would like to know if it is possible with this code to create a service. Because all the videos I see they just create services for things that will be duplicated in the code and related or localhost links. If you can help me, thank you...
asked by 26.10.2015 / 05:53
1
answer

How to make a layout template with angularjs?

I need a default template for all screens in my front-end application, how do I do this with angular-js? How are you?     
asked by 22.09.2015 / 14:37
2
answers

$ http.get with Angular JS

Looking for data from an api through $ http.get, but I find an error. My request within a service: app.service('pessoas',function($http){ this.getHumanos = function(callback){ $http.get('http://private-ff1c4-grupo.apiary-mo...
asked by 24.11.2015 / 14:30
2
answers

What is the best way to sign in with Angularjs?

In an app using AngularJS and Ionic, what is the best way to authenticate to an API? Do I check login on all screens or do I use some session engine? I guess authentication on all controllers may consume too much data ... What is the best way...
asked by 06.02.2016 / 19:43
2
answers

How to format a date by displaying the month name in angular?

I have an object Date in my controller in Angular. $scope.date = new Date; I would like to format this date in the view to display the full month name. I want the name to be displayed in Portuguese. Is there any formatting to dis...
asked by 07.11.2016 / 19:55
4
answers

Compare and update data from an HTML table with data returned via JSON?

Problem: I have a table that is populated by data coming from multiple JSON files, so far no problem. The problem is that I need to update the data if the values contained in the JSON are different from what is in the table, but without changing...
asked by 22.02.2017 / 13:46
1
answer

How to use $ broadcast (), $ emit () and $ on () in AngularJS

I understand that $emit() and $broadcast are emitters, and $on is an event listener. I'm working with unit tests and I'm not getting access to the following function: eventHandler.service.js (function () { 'use strict...
asked by 04.10.2017 / 15:41
3
answers

How to retrieve information from the database by id in the ionic?

I have an app I'm developing on ionic and angularjs I'm using routes and I'm fetching data from a database on a remote server, I have a page where I listed several categories and each category has an associated id of...
asked by 28.07.2015 / 15:59