AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Whatever(MV*) capability and reduce the amount of JavaScript needed to make web applications functional. These types of apps are also frequently known as Single-Page Applications.

learn more… | top users | synonyms (2)

0
votes
0answers
5 views

Clear local storage in Protractor test

I have a LoginPage helper with the following logout function: var LoginPage = function() { //.. this.logout = function() { browser.executeScript('window.localStorage.clear();'); }; }; ...
0
votes
0answers
9 views

Error: [$injector:nomod] Module 'nvd3' is not available

I'm trying to implement this Angular-nvD3 chart. So far I have the following code: in my main index.html I have the following scripts included: <script ...
0
votes
1answer
19 views

Why setViewValue() is not updating values on all places in this case?

index.html is: <!DOCTYPE html> <html ng-app="myApp"> <head> <script src="js/angular.js" type="text/javascript"></script> <script src="js/app.js" ...
0
votes
1answer
14 views

Angular-js ng-repeat with complex orderBy [duplicate]

I have an array of objects itemsMsg and I need to sort by id and code. I need to list in descending order, as the image below. First I need to sort by id and then by code. How can I list this array? ...
0
votes
1answer
11 views

Cannot Read property 'data' of undefined (Angularjs- not able to read data from template to controller)

I am newbie to angularjs. Still understanding the details and how it works. i am in a situation where i cannot find this simple solution. Hope someone could help me here. I have created a folder ...
1
vote
1answer
10 views

Using Angular Material, is it possible to align one button to the left and another to the right, in the same row?

According to Angular Material's documentation on alignment: The layout-align attribute takes two words. The first word says how the children will be aligned in the layout's direction, and the ...
0
votes
0answers
15 views

AngularJS doesn't push new record into the array

I create a new record, this record is successfully added to the database. That's good. But the problem is that it doesn't update the list of existing records - means the push function doesn't seems to ...
0
votes
0answers
3 views

open a pdf stream similar to FileContentResult in my angular js application

I am migrating a screen built with ASP .NET MVC to HTML5/angular JS. I had a method opening a pdf in the browser window like below in my old screen: return File(documentStream, ...
0
votes
0answers
15 views

Object doesn't support property or method 'query' in angular

Factory (function () { angular.module("common.script").factory("expenseResource", ["$resource", expenseResource]); function expenseResource($resource) { var expenceCategory = function ...
0
votes
1answer
14 views

Why I get an empty option (the first one) using ngRepeat?

The first one appear like below: <option value="? number:0 ?"></option> HTML: <select name="questionId1" class="questionId1 form-control required" tabindex="3" ...
0
votes
0answers
4 views

Angularjs, Firebase write with auth

I have to make an application angularjs and firebase where the user must authenticate to add firebase but I have not found information as must pass authentication data to firebase and what should be ...
0
votes
0answers
7 views

Create survey with angularjs and dynamic questions

First of all, I am a beginner with AngularJS.. as you can see below in the code. What I am trying to do is the following: I have Java RESTful API which returns a survey. Each survey has different ...
4
votes
2answers
35 views

Ng-Model=“something.$” what does this mean?

I'm new to Angular and I was reading over the filter documentation and I saw this code. <label>Any: <input ng-model="search.$"></label> <br> <label>Name only ...
0
votes
3answers
14 views

Why does the # character appear when using Angular ngRoute? [duplicate]

What does # character mean in a url and why does it appear when using angular routing: http://localhost:8000/#/login http://localhost:8000/#/register How can i make the link look like: ...
1
vote
1answer
7 views

There is a feature to use for AngularJS in ASP.NET MVC to be strongly typed?

Im a programer in ASP.NET-MVC i want to add AngularJs in my projects, i really like this framework but the problem is Visual Studio can't detect errors in debugger level, so when i make some syntax ...
0
votes
1answer
7 views

Using Apache mod_rewrite to move query parameters after /#

I need Apache to rewrite URLs by moving the HTTP query string from /?foo=bar to /#/?foo=bar so that those query parameters can be picked up by Angular's $location.search(). I'd like this to work ...
1
vote
0answers
10 views

Dynamically add angular attributes to old html forms

I have a project where I'm currently trying to refactor an old system that was hinged on jquery from the ground up with angular 1.x. However, there are a lot of old HTML forms that I'd like to reuse ...
0
votes
0answers
6 views

how to hide html video controls in micorostf edge (fullscreen mode)

I'm writing an angular directive for a video player. I'd like to have custom controls that should override the native one. In normal mode all works fine while in fullscreen mode no. Actually the ...
2
votes
0answers
27 views

getting data from a JSON and filtering it with angular

I need to develop a simple application with angular.js and I'm having a lot of trouble since I'm not used to use javascript.. My application consists of an input text where i write a series/movie ...
0
votes
1answer
9 views

How to use tooltip with translate tag ? AngularJS

I have a button and button script code : <a ng-hide="custom" href="#" tooltip-placement="bottom" tooltip="Zoom in" onclick="ga('send','event','Navigation Tool','Navigation Tool','Zoom in')" ...
0
votes
2answers
19 views

AngularJS in line edit

I have a small piece of code, which I would like to extend with in line editting possibilities: HTML: <h1>Schedule <label ng-click="modifyText(index)">{{th.schedules[index].label}} ...
0
votes
0answers
15 views

How to get absolute URL in angular HTTP Interceptor?

In our application, with every request, the front end hashes the url + the data and sends them to the server. The server then verifies that the query parameters as well as the data have not been ...
0
votes
0answers
18 views

POST from Angular to MVC controller in WebAPI project

I have a Web API 2 solution which contains a mixture of ApiController (Web API) and Controller (MVC) controllers. When I POST to my MVC controller from Angular I receive the following errors: I ...
0
votes
1answer
8 views

AngularJS: Load content and replace exitng

I am a beginner in AngularJS world (day 1st) and looking for some answers. In previous projects I used jquery ajax to load the content into an existing HTML document, where the backend application ...
0
votes
1answer
16 views

i need to show value of ng-model, but is not updating

<div class="row "> <div class="cell size-p40 " align="right" style="border-width:1px;border-style:solid;border-left-width:0px;border-top-width:0px;padding-right:3px;" > ...
0
votes
0answers
14 views

Calendar convert 12hrs format to 24hrs format time while sending back server using Javascript AngularJs

I have a calendar which contains date slots and a date slots. I am using AngularJS. After clicking on date, it will show the time slots in 12 hrs format. It will show the interval of times. Suppose, ...
0
votes
1answer
15 views

Angular $resource with path variable

I defined the following service: myServices.factory('MyManager', ['$resource', function ($resource) { return $resource('../rest/contract/:contractId', {contractId:'@contractId'}, { ...
0
votes
0answers
12 views

How to modify content from an ngInclude

I have searched the question/answers and it seems as if I should use a directive. I would however prefer to use the well tested ngInclude. The scenario is: I am using ngInclude to fetch an external ...
0
votes
1answer
29 views

AngularJs conditionally assigning a value to a scoped variable

Ok so let me prefix this by saying I am sure I am doing this in an ass backwards way but I cannot for the life of me see how this should be done. I have the following scope variable : ...
0
votes
0answers
8 views

GridList inside another gridList in angular-material

I am trying to have a GridList inside another gridList in angular-material, but the inside grids are not showing up. I tried in multiple ways, here is my codepen. Here is HTML code: <div ...
-1
votes
0answers
6 views

How change default host in a angularjs gulpfile?

I'd need some informations about the configuration of the webservice in Gulp. When I installed rdashAngular, by default the webservice was on localhost:8888, I'd need it works on: ...
0
votes
0answers
4 views

Using satellizer to login via facebook and sending user information to server

I am attempting to send back to the sever the user information from satellizer. I believe the call is as per this url: https://github.com/sahat/satellizer#authauthenticatename-userdata ...
0
votes
0answers
5 views

ionic shake animation of an menu item

Why the shake animation is not working for my menu item (which has the count)? I have the following template for the menu: <li class="item" ng-repeat="(key, value) in menuItems"> <a ...
0
votes
2answers
18 views

How to use $routeParams in resolve

I use $routeParams like this right now: My factory function: angular.module('fifaApp') .factory('FifaService', ['$http', function($http) { var sdo = { getTeamDetails: ...
0
votes
0answers
15 views

Directive apply result to all directives instead of only one

I built this directive to controll some affix effect on the page .directive('Affix', ['$window', function($window) { return { restrict: 'A', link: function(scope, element, attrs) ...
0
votes
2answers
9 views

How to make controller wait untill app.run finishes

In my application, I'm getting some data in app.run using $http.get() The result from this is required to proceed to the controller. Currently my controller is executing before the completion of this ...
0
votes
0answers
17 views

Why do anchor tag disturbs angular behaviour?

Using angular, it happens that this 2 things have a very different behaviour: <li ng-repeat="client in ctrl.client_list"> <a tabindex="0"> <label class="checkbox"> ...
0
votes
1answer
27 views

Json missing model name in mvc db

Using entity framework I scaled a model 'beer.cs' public class Beer { [Key] public int ID { get; set; } public bool HasTasted {get; set; } public string Name { get; set; } } ...
0
votes
1answer
10 views

Error while grunt serve command

I have created my application in angularJS. After npm install and bower install I am getting this error on grunt serve I am using npm 2.7.4, bower 1.6.5, grunt-cli v0.1.13 and grunt v0.4.5. My ...
0
votes
0answers
7 views

bootstrap tooltips not working when using it with angular ng-repeat and angular $interval together

Question: why isn't bootstrap like tooptips working when using it with angular ng-repeat and angular $interval Behavior I'm seeing: when using bootstrap tooltips with angular ng-repeat and angular ...
0
votes
1answer
7 views

AngularJS calling API giving injector error

I'm having an injection error when i try to use $http to get a value from an API on my app. I'm including both the code of the module definition and the function which calls the Web API and the error ...
0
votes
1answer
20 views

calling a function after forEach has been completed in angular

I have a method which needs to be called only after my forEach block completes executing. Right now in my code the function gets called first after that my forEach block gets executed. Here is the ...
0
votes
0answers
9 views

How to pass an Angular controller to Bootgrid

I need to use Bootgrid to populate a table. Here is the HTML: <form> <input type="text" placeholder="Codigo Afiliado" data-ng-model="numeroAfiliado"></input> <input ...
0
votes
1answer
16 views

Why is Angular putting the ng-scope class on an element that doesn't have a scope attached

I have a jQuery plugin that does template transformation, and an Angular directive that integrates with the plugin by calling $compile after the plugin runs on the produced DOM node: //in the link ...
1
vote
1answer
14 views

How to bind both once and not once using ng-class

How can I sucessfully do this? ng-class="{'a':x, 'b':::y}" Notice how I'm trying to bind only once with "y" but not with "x" I also tried using multiple ng-class directives, like this: <div ...
0
votes
0answers
9 views

How to render “_form.html.haml” from scaffold into AngularJS view?

I am trying to display a form for creating a new blog post in a modal window. The way I am doing this is following: <%= link_to 'New Post (AngularJS)', '', 'ng-click' => "openModalNew()" %> ...
1
vote
0answers
11 views

Defining and registering Angular directives in a 1.x ES6 project

I have been working on an Angular project that uses all ES6 syntax with babel-node doing the transpiling. This works nicely for controllers and services, but I'm uncertain how best to write directives ...
0
votes
1answer
3 views

storing dynamic banner images for image slider from remote API before application starting in angularjs

How can I store my banner images from a remote API when ever a angular application starts and maintain that banner images in root scope variable so that it can be accessible in every controller scope. ...
0
votes
0answers
5 views

Angularjs with GoogleBots using prerender.io

i am having many problems to get adsense in my web. I am trying to configure my virtualhost in order to use prerender.io when a bot is analyzing my web, but google bot (using search console) returns ...
0
votes
1answer
25 views

Listen for POST event with specific content using pure JavaScript

I've got a scenario where an AngularJS site is not loading any jQuery (aside from the inclued jQLite) and I need to listen for events with specific parameters. I can't edit any of the source, but the ...