AngularJS (a.k.a. AngularJS 1) 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 applications are also frequently known as ...

learn more… | top users | synonyms (2)

0
votes
0answers
16 views

Could not delete row or value as per required condition using Angular.js

I have one issue. I need to delete some row or set value as null from the table using Angular.js. I am explaining my code below. <tbody id="detailsstockid"> <tr ng-repeat="d in days"&...
-2
votes
2answers
24 views

Checking if a string contains a number, and if so, getting the list from that position

Suppose I have a string "Monday-Saturday 11: 12 VIKAS KOHLI", then I want two resultant like "Monday-Saturday" and "11:12 VIKAS KOHLI" Similarly I have the same string "Monday-Saturday 11: 12 VIKAS ...
0
votes
1answer
10 views

Firebase to query out single record

I have here a Firebase query which I am trying to query out a particular record for the current price for the particular month. Problem I am having is, to be able to access the record, I would need to ...
0
votes
0answers
10 views

Allow to next field through tab , only after the current input is valid

for example suppose if i am having three fields like below first name - min 5 chars last name -- min 5 chars phone number - has to be digit user is in first field (first name), if he press tab ...
0
votes
2answers
10 views

Can't inject constant to other modules angularjs ionic

I want to use constant variables which can be called from anywhere in the project. I made 'constants.js'. angular.module('myApp.constants', []) .constant('const', (function(){ return { ...
0
votes
0answers
27 views

angularJs component and controller

I have created angular component and the code looks below: (function () { 'use strict'; angular .module('App', ['ngMaterial']).component('autoComplete', { template:...
0
votes
0answers
11 views

nested rest(async) calls with ng-repeat

I have two Rest calls one call is dependant on other . StudentService.getStudentDetails({"status":$scope.status}) .then(function (response) { $scope.rowCollection = response; $scope....
0
votes
1answer
23 views

Div stay during scroll. CSS

I want to do div "Scroll" which stay in one place, even during scroll. Here's my code : .Scroll { position: fixed; } .Down { clear: both; } <div class="container-fluid"> <...
0
votes
0answers
8 views

Bower component Quilljs editor module (ES6) is failing while running gulp build

I am getting the error events.js:160 throw er; // Unhandled 'error' event ^ Error: scripts/vendor.js: error: couldn't process source due to parse error 'import' and 'export' may appear ...
-1
votes
1answer
29 views

html input width wont change

Im using bootstrap 3 and in here when i set the input width to 100% it won't fill the whole column width by the textbox. I even tried textarea but that also has the same issue that the width won't ...
0
votes
0answers
10 views

How to implement angular-ui-bootstrap or AngularStrap or QuantumUI in typescript

Could someone please let me know how to implement either "angular-ui-bootstrap" or angular-strap or QuantumUI in angular js using typescript
1
vote
2answers
20 views

AngularJS Routing and ASP.net MVC

I'm learning angular, I'm trying to use routes for the first time but something is wrong with it, this is not working: This is my main view(UsingDirectivesWithDataBinding.cshtml): @{ Layout = ...
0
votes
1answer
29 views

Angular 2, ngOnChanges, ngDoCheck

Hello folks i have come to you with many thoughs, i would like to talk about something i cannot get. Simple service studies So we have here one service who is triggered by a component. This is a ...
0
votes
0answers
15 views

unable to test the function in angularjs controller in switch case

I am trying to test below function. I am using jasmine for testing the same var razorPaySuccessCallback = function(payment_id) { $scope.razorpayParams.razorpay_payment_id ...
0
votes
3answers
46 views

Adding css conditionally issue in angular?

I am adding css class depending on property id , When i ng-click css class is adding and when i clicked second property id,The class which is added first property id is removing . How i can keep css ...
0
votes
1answer
16 views

How to get service function to controller in angular js versi 1.6.1

i have some trouble on my script, i want to get data from database using json output. [{"id_admin":"2","username":"mac","password":"macgeeky","nama_lengkap":"Mac Geeky"}] here is my angular script : ...
0
votes
0answers
4 views

Angular Seed Project - Configure SystemJS for new Package

Scope: I am working with angular and started using the see project. I have written this small function, which gets called in my app component: import * as request from "request-promise" let baseUrl ...
0
votes
0answers
4 views

How to set truesizr[w,h] dyamic using ng-jcrop for crop an image

I want to set dynamic trueSize[] in ng-jcrop. Is it possible to set after image upload and uploaded image width,height need to set here. I have used angularjs and use partial for uploading an image ...
0
votes
0answers
19 views

how page loads (flow) in angularjs 1.x?

I am having an angularjs application which contains everything i.e. controller, directives, services, factories, config and run function etc. But I am always getting confused about the functional ...
0
votes
3answers
25 views

fetching data from angular controller and display it on the html view got error

I am developing an online course application and I am trying to display the course details of a course along with video lectures which are on youtube. My angular controller is fetching the course ...
1
vote
0answers
22 views

how to store form-data in multiple tabs?

Tab object contain 6 tabs i want to store data each tab by selecting tab and assigning to form data inside selected tab. I achieved by selected tab and assigning form data into selected tab. here is ...
0
votes
3answers
49 views

Check if obj exist and push to array

I want to iterate through a JSON response, check to see if key,value exists and if not, add it to the array. $scope.InitProdToArray = function (data) { angular.forEach($scope.data.obj.Product, ...
0
votes
0answers
34 views

Removing empty space in AngularJs form

I am using AngularJs and bootstrap css. I have a ng-repeat section, which is hidden and shown on dropdown selection and a submit button. Initiall the ng-repeat section is hidden, so the button appears ...
0
votes
0answers
14 views

ngClipboard : expression value not getting replaced on copy

I have a copy to clipboard button on an error information tab which copies the error info. The error information is dynamically generated depending on which information is required. I have the error ...
0
votes
0answers
12 views

I have to make a datepicker using angular bootstrap where user can add

enter image description here I am trying to make datepickers using angular bootstrap . Here are the conditions. a)Opening Date b)Notification Date c)Deadlines: Here user can add any number of deadline ...
0
votes
3answers
45 views

Automatically Submit the form in 20 sec

I am trying to automatically submit this form 20 sec, but something is wrong and is not working, i dont have any error messages and i am using this as a starting point to get the username and password ...
0
votes
0answers
19 views

Angular, Karma unit tests - is not a function

I'm new in AngularJS, ES6 and Karma. I fight with configuring karma 3 days, so it is really irritating. I want to add some unit tests to my angular-videos-library app. Here's error from console: ...
0
votes
1answer
21 views

ng-click is not calling my function inside controller

I'm new to ionic and angular.js. I'm trying to call a function sayHello() which is written in controller. Here's how I wrote. In html, <button class="button button-large"><i class="icon ion-...
0
votes
0answers
7 views

load socket.io with Angular 2 AOT

I've created a project in angular2 with socket.io to emit / listen socket communication. Everything works fine in JIT ( or npm start) but when I try to compile the code via rollup to lunch it as AOT ...
0
votes
1answer
11 views

Set Chart-click property of Angular chart

I would like to know that how I can set the chart-click property through java script for a given canvas element. I tried doing angular.element(document.getElementById(id))[0].attributes[...
1
vote
2answers
34 views

$scope variable do not respond to the onClick function of angular chart

I have a chart in the page. When one click in the chart, the onClick function will be called and it will know which category of the chart has been clicked by user. I created a div to show $scope....
0
votes
3answers
27 views

Factory in angular

Can someone please tell me what's wrong with the below code factory part ? I get an error message for the third console log. Thanks in advance. fsp.html:95 Uncaught SyntaxError: Unexpected token ( ...
0
votes
1answer
33 views

AngularJS ng - repeat, ng - model on input text strange behaviour

i am new to AngularJS, i try and do the code below var app = angular.module('SomeApp', []); app.controller('QuotationController', function($scope) { $scope.init = function(){ $scope....
1
vote
2answers
23 views

Why the need for browserify `paths` definition?

The link https://github.com/jhades/angularjs-gulp-example/blob/master/gulpfile.js has the gulp build-js task definition using browserify paths. I don't understand the need for it... wasn't it possible ...
1
vote
2answers
15 views

Directing to parent directory with htaccess

I using HTML5 urls on Angularjs for my single page application. I directed urls like localhost/project/page to index.php with htaccess code i found on the internet. If I am refreshing the page when a ...
0
votes
1answer
14 views

Angular Parse GET Return

m gets generated in a factory with the following request: var m = $http({method: 'GET', url: JSONurl}); Console log of m after the GET request: I need to grab m's "data:" which has the Array[2] I ...
0
votes
0answers
23 views

AngularJS: Making a request to external web server

I am trying to add features to a simple file browser practice app made with Node, Express and Angular. I am able to hit my node api and view directories and files contained locally. I would like to ...
-1
votes
0answers
20 views

French characters for regex turning Ukrainian?

I'm trying to do validation for a name in a form in my app.js file. I started with this and it works fine for now. /^[a-zA-Z\-'.]+$/ So now i want to allow french characters, so I added this. /^[a-...
0
votes
1answer
32 views

Can somebody explain the `clean` dependency in this gulpfile?

Trying to study https://github.com/jhades/angularjs-gulp-example/blob/master/gulpfile.js, and I have noticed that for the task build there is a dependency clean. However, for most of the other ...
0
votes
0answers
25 views

How do you install angular-cli for windows 7

I am trying to install angular-cli for windows. I know the command is npm install -g angular-cli, however once I run this command I then try to do ng new however I get an error saying "ng is not a ...
1
vote
0answers
12 views

Check to see if key,value pair in myArray is in the JSON and if not, add it in

I am trying to check to see if a key,value pair in my array is found in the response JSON and if it is not, then I want to add it to the JSON. $scope.myArray = [{ "Product_type": "T" }, { "...
0
votes
0answers
16 views

Can I use the same html for two components in Angular

I have an interesting dilemma, I've written a project that at one point had two controllers and two templates .state('resources', { url: '/resources', controller: '...
0
votes
1answer
31 views

How to show the same element more than once in ng-show?

I am playing around with a card game app, and I want a card image to show for each instance that is in the hand array. To keep it simple, I am looking to show card1.png if the array looks like [1,2,3,...
0
votes
0answers
55 views

element.remove doesn't work

I'm trying to implement a directive to remove elements from page depending on the user role. Here's my directive : angular.module("BlurAdmin") .directive('restrict',restrict); function restrict (...
0
votes
0answers
13 views

ng-if tabs condition display div

Hello I need to display a div only if tabs[0].active. I am trying to write a good condition but i can not handle this. I tried 3 ways: <div ng-if="tabs[0].active"> and <div ng-if="tabs....
0
votes
0answers
8 views

Three.js & Angular Orbitcontrol update error

I am loading a .stl file (3d model) using STLLoader from THREE Everything is working fine. I mean as expected. However the console is bringing error up. Its is showing 4 times; Uncaught TypeError: ...
-2
votes
0answers
17 views

Website Drag and Drog Builder Tutorial? [on hold]

I am interested in building a Website Builder and I am familiar with latest Front End and Back End Technologies i.e Html5, css3, Js, Angular, Node, Sass, php, mysql and many other. Now I have an idea ...
-4
votes
0answers
16 views

Codeacademy Lesson in AngularJS1.x

I want to include a link to a JS file in an HTML file by using the <script src="..."></script> tags. Here is the specific line I wrote: <script src="js/directives/appInfo.js" >&...
0
votes
0answers
19 views

Trying to save files to server (Express) from client (Angular) using multer

I get no error, but there are no files in the directory, so I am completely lost where to look for the bug. I really appreciate any help offered. HTML: <div class="form-group"> ...
1
vote
1answer
21 views

AngularJS - how to fake a server to get local json file in project?

I am making a local static webpage that has no backend. I've only got data in a json file. I will be zipping up the code and sending it to someone. I cannot import the file into index.html because ...