Questions tagged as 'angular-module'

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
2
answers

What is the best way to reuse codes between modules

I'm developing a tool using AngularJS, but I'm constantly picking it up, I need to reuse code from different modules and files, but it's not working properly. With javascript pure, it is quiet to reuse other functions, even in different files, t...
asked by 21.10.2015 / 16:16
1
answer

Rotating Banner

Hello, use angularJS and wanted to put it to change the slides every 10 sec. I already tried some codes and I could not. Does anyone have a tip? Here's my controller. (function () { 'use strict'; angular.module('scases') .controller('Banne...
asked by 16.05.2016 / 16:10
1
answer

I can not call a function with ng-click

I'm learning AngularJS and I have a problem that I can not solve. I have a function inside a controller that is inside a module. This function is responsible for assembling an accordion element with several items: $scope.montaAccordion = fu...
asked by 03.11.2015 / 16:42
1
answer

md-slider, how do you know when it was finalized?

I have this slider : <md-slider step="5" min="15" max="120" ng-model="tempo" aria-label="red" id="red-slider" class=""> </md-slider> I did not get a legal way to know when the user changes the slider, I worked like th...
asked by 08.12.2015 / 10:36
1
answer

How do I make this directive return in ng-bind the sum of the results?

angular.module( 'isfModFinance', []) .directive( 'isfModFinance', function() { var validElementScope = angular.element('<div>{{ model.input }}</div>'); var validElementTotal = angular.element('<div>{{ model.total }}&...
asked by 04.09.2015 / 00:18
1
answer

Ui-Routes get the id of the logged in user

I'm using ANGULARJS / UI-ROUTES , and currently my application after login only keeps the email, I need to also have the user ID logged in. The issue of the routes I get, the problem is that he does not see the ID to be able to bring. I think...
asked by 26.05.2016 / 15:54
1
answer

How to use the modules and decorator NgModule?

I have questions about how to use the NgModule decorators. What are they and what are they for? How to create a separate module to load one or more libraries and components? For example, one to load the dependencies and elements of...
asked by 05.08.2018 / 23:56
3
answers

How to install Angular JS modules? [closed]

I'm creating an application in spring + angular, and for reasons I can not install the angular modules in the project folder by the command bower install ... how can I install these modules manually and how do I use it?     
asked by 08.09.2015 / 13:41
1
answer

How to set a start date in this countdown counter made in AngularJS

I created a module in Angular JS that takes the current date of the clock and starts counting until the end, but I need to be able to set a starting date to start the count that is not based on the clock, how do I do this? angular.module('...
asked by 29.08.2015 / 00:37