Questions tagged [angularjs]

Use for questions about AngularJS (1.x), the open-source JavaScript framework. Do NOT use this tag for Angular 2 or later versions; instead, use the [angular] tag.

-1
votes
0answers
5 views

Do i need to learn node-js to learn socket.io?

I know angularJS and i want o make my angualrJS apps mealtime data syncing between server and client. I heard of socket.io that helps to achieve this but when i try to learn socket.io, i see most of ...
-1
votes
1answer
8 views

angular 7 writing test for routing

I have made an application with some components and I made the navigation between the pages, they work fine. I want to write a test for my routing section. this is my router.spec.ts import { ...
0
votes
0answers
3 views

Export Canvas animation to interactive PDF using Angular 6

Is there any way of exporting canvas containing animations to interactive PDF? Something to allow user to save that canvas content to an interactive file? I have briefly explored jspdf and html2canvas ...
0
votes
2answers
23 views

How to set arrayform in Angular?

I'm using Ionic for my new app. I give users the option to store a form locally (localstorage), but when the page loads, it has to load the local form. I tried setting it directly to the variable ...
1
vote
1answer
20 views

Fill HTML select with options from Web.config

I have an HTML page, with a <select> which has a few options in it. Currently, these options are hardcoded into the HTML. Is there a way to get a list of options in Web.config, get them in my ...
0
votes
0answers
14 views

DataTable render base on ng-if header

I'm using DataTable to change a normal table into a DataTable In my table, I have AngularJS ng-if to change column position My HTML code <table id="example" class="display" style="width:100%">...
0
votes
0answers
9 views

AngularJS pagination in table

I am in trouble adding pagination in angularJS table. this is my GET method of controller. $scope.getAllContact = function() { var data = $http.get("http://127.0.0.1:8000/api/v1/contact") ....
-1
votes
0answers
10 views

i'm trying to create a search box with agnular js and angular-smart-table

every time i search something all the rows disappear <tr> <th class="box" colspan="5"><input st-search="" class="form-control" ...
-2
votes
0answers
7 views

How to add custom component ngFormBuilder Form.io

i try add custom component to ngFormBuilder, but i can not find success I am using angularjs This example https://github.com/formio/ngFormBuilder not working for me I find this issue https://github....
-1
votes
0answers
21 views

How can I get innerHtml of angularjs?

When I try to get innerHtml of my angularjs page element it returns the angular directives instead of the data. How can I grab the generated HTML?
0
votes
0answers
14 views

Generated docx document is corrupt and can not to open

After genereting document, when i want to open it, i have communicate "The file is corrupt and cannot be opened." How can i resolve this problem ? I tried many posibilites, like adding responceType : ...
-1
votes
1answer
19 views

how to keep open bootstrap dropdown on page refresh

<li class="list-group-item list-group-item-action text-light bg-primary" data-toggle="collapse" data-target="#service" class="collapsed"> <a href="#" class="text-light"><i ...
0
votes
0answers
8 views

angularjs homepage encountered a declaration exception

I am doing automation testing using protractor with testlink. https://github.com/Baltino/protractor-testlink I cloned the following project in my device and changed the necessary IDs. After execution ...
0
votes
0answers
4 views

Is there a way to track/follow the stream of functions that are running in webstorm?

Once the user clicks on "Create Account", he/she should be redirected to confirm registration page, instead, he/she is being redirected to the home page. Is there a way to follow the stream/flow of ...
0
votes
0answers
6 views

Google search console not loaded CSS resources in angularjs APP

I have a SPA app written on angular js, so when I try to validate my site in Google Search Console it's show me that the website is not mobile friendly because google doesn't see a lot of CSS files in ...
0
votes
1answer
13 views

$uibModal keeping changes even after closed

I am trying to integrate an uibModal into my application which will allow users to change settings. My problem is that if I make changes to the settings and then close the modal without saving, the ...
0
votes
1answer
20 views

AngularJS $LocalStorage cleared but setInterval working yet

I have an issue with a snippet, it works like if i update anything in on tab, the other tab should change (calling GET function) And my snippet works very well in this case, here you go for my ...
2
votes
0answers
13 views

Scope problem - Nested $mdDialog within class based controller

I am moving my AngularJS controllers over to a class based model in order to support a few newer ideas that have come up lately. This has brought up an issue using AngularJS Materials $mdDialog ...
2
votes
0answers
16 views

ng-view does not load pages

I am developing a app that presents page which in turn will present 1 of 2 other pages based on sql query results. The primary page will not display so that I can select 1 of the other 2 pages I've ...
0
votes
0answers
9 views

Setting cookies across domains properly

How do I set cookies on the current domain properly instead of the one called? I have a site running on A.mydomain.com The REST api is calling from B.mydomain.com using express and cookie-parser im ...
0
votes
0answers
25 views

Dynamically change dropdown select defaults depending on existing values in array

I am new to web development and AngularJS and I have been struggling with how to go about this. Sorry for the bad English. I use an ng-repeat that creates the correct number of dropdowns I need as ...
0
votes
0answers
9 views

Error running Protractor in AngularJS tutorial project

I'm walking through the AngularJS tutorial PhoneCat project. Most things are working fine, including npm start and npm test (although they only work with sudo). But `npm run protractor gives me ...
0
votes
0answers
6 views

Template dinamico para contener a un arreglo de banners

Tengo un problema no entiendo como puedo en angular js iterar mi lista de a dos es decir tengo una lista de banner que me llega desde la api y tengo mi html que es el que debe generar los layout para ...
0
votes
1answer
12 views

AngularJS | Redirect to MainRoute when use does not have permission to see the page

I am using a multi-tier auth-system, with my AngularJS App(Angular 1.6.4). Meaning, that a user has multiple permissions. Depending on the permission he has he can see or not the page the permissions ...
0
votes
0answers
5 views

packaging a vuejs component so that it can be imported in angularjs project

Currently have a vue project set up with webpack. I can build the entire project into a single JS file – I can import that JS file into an angularjs project and use the component <my-component ...
0
votes
0answers
12 views

npm install failed with Error: EPERM: operation not permitted, unlink '\node_modules'

I try to run "npm install" command in CMD ["node_modules" is inside C drive] but installation failing with below error. OS :Windows 10. Node JS version: 6.9.0. Error: EPERM: operation not ...
0
votes
1answer
25 views

Can't communicate electronjs-angularjs using IPC

I'm starting with electronjs desktop-apps so i decided to use angularjs for the views. Now, when i try to use eletron ipc to communicate betweet these two i get Cannot read property 'send' of ...
0
votes
0answers
22 views

My AngularJS seems running everything twice

I have this app.js /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ ...
0
votes
0answers
16 views

403 forbidden - Upload file to Amazon S3 bucket using Angularjs with pre signed URL

I'm trying to upload image/music file using presigned-url. But I'm getting 403 forbidden error. I've implemented using below document. http://www.cheynewallace.com/uploading-to-s3-with-angularjs-and-...
1
vote
0answers
30 views

TypeError: Cannot read property 'email' of undefined - AngularJS

Controller angular.module('onboardingApp').controller('userInfoController', ['$scope', '$location', 'apiService','$log' ,'$q', function($scope, $location, apiService, $log, $q) { $...
0
votes
0answers
18 views

What I should write in ts so that i can update a field?

I want to know what code i will write for the function of button(html) in ts file so that i can update the field from the data that is already stored in my mongoDB. I got two buttons in my html code ...
-1
votes
0answers
6 views

Does anyone know if 'angular-editor' has the option to create tables and give colors to the text?

link for angular editor: https://www.npmjs.com/package/@kolkov/angular-editor config: : AngularEditorConfig = { editable: false, spellcheck: true, height: '25rem', ...
0
votes
0answers
14 views

How to integrate captcha when angularjs is used for form validation

I use angularjs and php for my project and angularjs for my form validation and it's pretty good so far. But I haven't thought of captcha till now and how to add that. There is an opensource ...
1
vote
0answers
16 views

Calling php function with AngularJS AJAX

I've got a list.php file where I want to add an item to my test-database: function addItem($item){ $servername ="localhost"; $username ="root"; $password = ""; $pdo = new PDO( ...
0
votes
0answers
11 views

Only allow data in date format to be entered e.g. '06/05/2019'. but accept numerical and alpha strings that are not in the correct format?

Only allow data in date format to be entered e.g. '06/05/2019'. At the moment these fields allow the entry of numerical and alpha strings that are not in the correct format. I am using this code. ...
0
votes
0answers
8 views

Creating a smart table with buttons that updates markers coordinates on click with angular js 1.6.10

i'm creating a smart table which contains buttons that on click should updates google-maps markers, such that dpending on which button i click the google-maps will update its markers showing the ones ...
0
votes
0answers
22 views

Angularjs app change color of loading icon based on url parameter

I have an angularjs app with loading icon inside angular app. I have a requirement to change the icon color based on url. I am managing that by adding and removing classes. Problem is that the default ...
0
votes
0answers
16 views

How to Cache Bust using 'staticify' in resource folders(images, css, etc.) for angularjs application?

Our application is developed using AngularJs. We have few image files, css, js maintained in resource folder. We want to cache bust these. Application setup: Main directory  --js  --modules ...
0
votes
0answers
15 views

How to remove #! in URL overflow?

My website URL is ended with #! it generates duplicate URL, can you guys suggest me how to remove #!? https://thekaplancenter.com/before-after/#!
-3
votes
2answers
45 views

How to align properly?

I have to align the fields(right) as shown in below image.Here is my code built in Angularjs using label tag for all the legends in form and i styled using CSS. How to correct the alignment, so that i ...
0
votes
2answers
14 views

Problem Using _.compact lodash to eliminate null values on an array of objects

I'm manipulating an array of objects that i get from an http request containing coordinates to create markers in google-maps , but i need to eliminate all the null values in the array. I'm trying with ...
0
votes
1answer
32 views

Error : Uncaught ReferenceError: angular is not defined at controllers.js:1

I am trying to use ionic action sheet in my ionic project but in console it is showing error :- Uncaught ReferenceError: angular is not defined at controllers.js:1 Can you please help me to ...
0
votes
0answers
19 views

How to fix [$injector:unpr] when I add ng-view to my HTML code?

I'm trying to set up an SPA with angularjs. Everything is written like in working examples, but I recieve 2 "[$injector:unpr]". Any ideas? ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀...
0
votes
0answers
24 views

Angular Save Image in Folder or in MongoDB

Hello I have an Angular Application, where I capture Images from the Webcam over a canvas. Here the Code where I save the new Image in an Array: var context = this.canvas.nativeElement.getContext("...
0
votes
1answer
20 views

AngularJS - $http request special characters issue

I hope you are fine guys. I am trying to consume an API written by my colleague with the use of AngularJS $http. It is a PATCH method type. One of the parameters is passed in the URL (SomeMethod/User/...
0
votes
0answers
27 views

Reusing functionality in angularjs controllers

I have a tree renderer that displays interactive nodes. Here is a piece of such interaction: <div class="col-sm-10 pull-left box-content" ng-click="loadEdit(node)"> <div data-ng-if="!...
0
votes
0answers
14 views

Brower save password but model password in angularjs not update

I validate form login with angularjs, the button login will disable when form invalid. I login success and click logout. My password is saved by brower, but the form is invalid now. Can you give me a ...
-2
votes
0answers
14 views

How i can format HTML file which has angular expression include like ng-model ng-if?

I am working in a html file which has angularjs expression included like ng-if, ng-model etc.... I working in VS code editor so when i am going to indent my code by alt+shit+F then some code formatted ...
-1
votes
0answers
10 views

Angular property to reset other property

I have a button named "TRK_9_1_upgrade" that is used to start a process (TRK_9_1_upgrade=1), the signal that the process is started arrives from (TRK_9_1_master_control_enabled=0), I need that when ...
3
votes
1answer
22 views

Merge two or more cells into one in ALASQL

I'm trying to export excel using alasql in angularJS. Here I need to merge two or more cells into one what we do using colspan in HTML. Would be great if someone can help me with that. Thanks in ...

http://mssss.yulina-kosm.ru