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
3 views

angularjs uib-tab lazy loading

I have a uib-tab with a heading an an ng-click method that loads the actual content by switching a boolean variable as follows. <uib-tab class="height-full"> <uib-tab-heading ...
0
votes
0answers
12 views

Scope Variable undefined in angularjs typescript controller class of directive

I have created wrapper directive over ag grid as below function MyDirective(): ng.IDirective { var directive = <ng.IDirective>{ restrict: "E", template: '<div ...
0
votes
1answer
16 views

Is Angular2 limited to a single root element in a directive?

In Angular 1.x, I am required to provide a single root element in my directive templates. When using the option 'replace=true', I can't have a template for a directive that looks like this: ...
-2
votes
0answers
6 views

Is there a way to prevent user to change classes in DOM Inspector

I'm using AngularJS to show/hide some elements in my page, but I noticed that if an element is hidden (it has the class ng-hide) we can easily remove this class with the DOM Inspector (F12) of the ...
0
votes
0answers
25 views

Step through array of strings using Ionic range

I would like to use a slider (ionic range) to step through the strings in an array. Here is a codepen to illustrate what I mean. The issue where is that I am going to be mixing different ranges ...
0
votes
0answers
16 views

angular ui-keydown is not working with shift+ctrl+alt+A keys

For example: <div ui-keydown="'shift-ctrl-alt-65': 'ctrl.scrollFromShortcut($event,\'others\')'"></div> shift-ctrl-65 is working correctly. But shift-ctrl-alt-65 is not working with ...
0
votes
2answers
25 views

Passing Boolean value from c# to angular view

Here is my simple code: c# public bool isAllowed { get; set; } protected void Page_Load(object sender, EventArgs e) { isAllowed = false; } angular controller ...
1
vote
1answer
11 views

ng-class with a complex expression

I have this code: <button class="btn" ng-class="{btn-success: (qus.q.questionNumber == (qus.qs.length - 1))}" ng-disabled="qus.q.questionNumber == (qus.qs.length - 1)"> When I look in ...
0
votes
1answer
12 views

How to parse multiple variables via ng-click into a angularjs function

I'm new to angularJS and can't seem to figure out how to parse multiple variables from a html button thru an angular JS function. <html ng-app=""> <head> <script ...
0
votes
0answers
6 views

Facebook Login via custom API (CORS)

I am currently developing an API in Laravel and the frontend in AngularJS. I am using Socialite to provide me with third party login options. The routes for my API are as follows: ...
0
votes
3answers
20 views

Why is $watch not updating when the model changes

Why is the watch not logging every time the model changes? Why is the Input not beginning with the value test? (function () { 'use strict'; // Create the application. var app ...
0
votes
0answers
5 views

Angular Material md-card-title-text has height of 0

I'm trying to figure out why my md-card-title-text Doesn't render right, I don't have any extra css on it, just default angular-material I'm using te following code to show it: <md-card> ...
0
votes
1answer
16 views

Angular 2 Tour of Heroes project not working after splitting appcomponent

I've been following the tutorial to learn Angular 2, everything went well until I had to split up appcomponent into heroescomponent & appcomponent. Anyone here that had the same problem or can ...
0
votes
1answer
8 views

Angular Unknown provider: $modalProvider <- $modal <- Controller

After upgrading to angular-bootstrap 1.2, this error occurred when loading my app: Unknown provider: $modalProvider <- $modal <- Controller
0
votes
0answers
13 views

AngularJS ng-valid issue with self-enclosing input tags?

This is the code that I have written while following the angular js documentation available in the official documents. <div ng-controller="ExampleController"> <form novalidate ...
1
vote
0answers
6 views

Meteor with both blaze (web) and angular (mobile)

I'd like to create a mobile/cordova version of my Meteor web application. The web version uses blaze -- which I'd like to stick with -- and for the mobile app version Ionic seems like an excellent ...
-6
votes
0answers
27 views

Empty span disappeared

I have this html: <div class="panel panel-info"> <div class="panel-heading">Person</div> <div class="panel-body"> <div class="data"> ...
0
votes
0answers
10 views

Meteor Mongo Angular - Mongo isn't loaded on server side

I have 2 questions but writing it in 1 because they are very begginner questions. I am trying to return single product from server side of meteor. This is my code. // in client/product-controller.js ...
1
vote
0answers
10 views

Angular md-sidenav does not open inside of my codepen

Trying to get my md-sidenav to open when I click the burger-icon but I can't get it working. I've tried checking for log messages and also creating a simple sayHi function that doesnt print anything ...
0
votes
1answer
27 views

Angularjs aliasing scopes

I'm stil learning Angular so forgive me if the question is nonsense I have an object with this hierarchy: { a : [...], b : [{ a: [...] }, { ... }] } That is I have ...
1
vote
1answer
6 views

deconflict ng-model for repeated ionic range input

I am using a series of range inputs to adjust the values on an object in $scope. Whilst my object is possibly not the best structure, it is what I have inherited and have to work with it as there is ...
0
votes
0answers
10 views

How to get ng-map marker position after dragend?

I'm using ng-map for Angularjs, I'm using the following code to get marker position after drag event <div class="mapWrap" data-tap-disabled="true"> <map ...
0
votes
0answers
6 views

How do I run a Meteor app in Xcode with a settings.json file?

I have been following this tutorial to create a WhatsApp style messaging app with Meteor, Angular and Ionic. It works well with settings.json when I run it on the simulator with this: meteor run ...
0
votes
0answers
8 views

Generator for Angular library?

I am going to develop a library and would like to follow the best practices for the 3rd party library for AngularJS. Is there any kickstarter project / generator for a new angular module / directive ...
1
vote
1answer
25 views

Unable to properly load external script without jquery

I am trying to lazy load a directive within another directive based on a condition. I have a main directive and within it I have a <script> tag. The included directive loads properly only when ...
0
votes
0answers
5 views

OAuth2 Implicit Grant with Ajax

I'm implementing OAuth's implicit grant type in a javascript application using Angular. I would like to request a token using an ajax request. When I make the request to my OAuth server, it responds ...
0
votes
1answer
15 views

How do I add/remove a list-item onClick using Angular.js?

I am new to Angular.js and what I'm trying to do is adding a lis-item every time the user clicks on #create-new-rule but the below doesn't seem to be working. Also, when the user click on li .delete ...
0
votes
0answers
6 views

yeoman fullstack-angular using authentication in controller

I have a link like this: <a ng-click="doSomething()">Do something</a> In my controller I want to take a different action based on Authentication but I can't figure out the right syntax. I ...
0
votes
0answers
12 views

Angular - $uibModal is undefined

I created this controller app.controller('headerCtrl', [ '$scope', '$log', '$uibModal', function($scope, $log, $uibModal){...}]) which gives the following error anytime i run it Unknown ...
-2
votes
2answers
33 views

html label value from javascript function

Is there a way to set the value of a label tag by invoking a function? I mean, something like the following: <label>Convert_Code(4)</label> where Convert_Code is javascript function ...
0
votes
0answers
23 views

How to pass function callback from one component to another component in ng-forward

I have created two components named as Alert ticker and dropdown. These two are separate component. So lets come to the point. I am using this alert ticker in some other page named as Dashboard. so I ...
0
votes
0answers
32 views

Angular 2 / Ionic 2 — Correct way to Build Array of Observables that http.get Data on Interval

I'm working with Angular 2 and Ionic 2, trying to build an array of reactive objects. I'm trying to figure out the correct way to build an ion-list component (StocksList) that populates itself via a ...
0
votes
1answer
12 views

AngularJs and Angular-UI-Router routes permissions

I'm facing an issue on how to implement route restrictions based on remote data gotten from the server. Suppose I have the following config file: angular.module('myApp') .config(['$stateProvider', ...
0
votes
0answers
12 views

Protractor 'throw e' on Ubuntu - clean install [duplicate]

I have clean installed protractor to learn it. I ran such commands: sudo apt-get install nodejs nodejs-legacy npm npm install -g protractor sudo webdriver-manager update webdriver-manager start ...
2
votes
1answer
21 views

how to display user details with ionic ngResource

I am using ngResource to make login page by phone number and i want to show user details after successful login but i can't make ng-repeat with response My Controller .factory('Post', ...
0
votes
0answers
6 views

j_security_check not redirecting to angular with # hash key

I have a jboss web application with form-based authentication and Angular based client. Scenario: I go to http://localhost:8082/my-app/#/dashboard, with session timed out It redirects to login page ...
0
votes
0answers
15 views

Run AngularJS service with priority

I need to run a service as soonas my webapp starts. I must be sure that this service runs first before everything else because I'll get a server-side token that I will use in every next request. I'm ...
0
votes
0answers
14 views

Ionic App LocalStorage on $scope array

I have a problem. Im building a To Do List app, and i cannot save the array named $scope.tasks to LocalStorage. I tried it several times but i dont know how to do it. Heres my code, i would ...
-3
votes
1answer
36 views

How to merge two arrays in Angular? [on hold]

According to JS documentation there a concat() method for concatenating arrays, but if I try it in angular: $scope.array1 = []; $scope.array2 = []; $scope.myConcatenatedData = array1 ...
0
votes
0answers
23 views

$locationProvider.html5Mode(true) doesn't work properly in SPA Angularjs

I am a AngularJs beginner and I want to create a simple and basic SPA according to single-page-apps-with-angularjs-routing-and-templating from https://scotch.io/. before using $locationProvider all ...
0
votes
0answers
17 views

Routing related issue pertaining to Angular [Frontend] & node.js(express js) [Backend]

I am using Angular js for the front end and Express js over node.js at the backend. What I am trying to do? I am trying to implement something like facebook's facility to provide you unique ...
0
votes
2answers
29 views

checkbox updating ng-model of another field

I am trying to use a checkbox to set the date for another input field. I can't make it work. Any help would be appreciated. I have created a jfiddle to demonstrate what I am trying to do. As you ...
0
votes
1answer
13 views

Angularjs ng-checked not working

I am generating checkboxes trough ng-repeat , for all columns of some grid <div ng-repeat="(key, val) in gridData[0]"> ...
0
votes
0answers
12 views

Angular after submit action get next row of data

I would like to add next row of data to a table collection after a row has been approved/rejected. I would also like to add pagination but have been struggling with this to as the examples seem to ...
1
vote
1answer
29 views

Angular Material not working correctly

I am learning AngularJS and I want to use Angular Material, I've downloaded it with npm install angular-material and I've imported it but it is not working. That is what I see, any help please? ...
0
votes
0answers
8 views

Custom toggle function does not work with ng-click in Ionic app

I want to create the following in my Ionic app: User gets to see a list of radio buttons When user clicks item (for now only "Comparison" works), it automatically shows a follow-up question in a ...
0
votes
0answers
11 views

AngularJS: Navbar (footer) per View. Is it possible?

I want to change my navbar (navbar-absolute-bottom) when my view changes. I also want the buttons to activate functions that are in the scope of the current view. I found solutions to change the ...
2
votes
1answer
20 views

Input field not resetting value - AngularJS 2

export class ParametersForm { myForm: ControlGroup; systemParameters: AbstractControl; arr: number[]; constructor(fb: FormBuilder) { this.myForm = fb.group({ "realisations" : [""], ...
0
votes
0answers
8 views

How to load data only once in Angularjs from Firebase using firebaseArray()?

I want to load data only once from firebase database and then stop listening for that, because whenever I change something to database changes instantly reflected on my site and I don't want that.
0
votes
0answers
18 views

NG-Include Pass Element By ID

In my code below I have repeated the outer div with ng-repeat, and included an external html template to have unique content inside the inner div. It works actually as expected in case I have many ...