0
votes
1answer
9 views

Issue making Ng-Table table columns sortable and filterable

I am new to Angular. I want to create a small application that does several server calls and then it populates a table with all the data retrieved. I am using ng-Table for the table. The data is ...
0
votes
1answer
9 views

Angular 2 (CLI) Routing don't work (Cannot read property 'split' of undefined)

Why routing works only for first imported component after AppComponent (example code below: routing works only for "PageNonFound")? Also, I noticed error after adding routing to my project Error ...
0
votes
0answers
17 views

AngularJS filter in nested ng-repeats

I have 2 nested ng-repeats to populate a list of categories and items under those categories. I am trying to implement a search filter so: - If the title of an item contains the string of the search ...
0
votes
1answer
16 views

Angular JS, ngRoute isn't working

I've been working on my ngRoute without sucess. I can't load the module 'ngRoute'. I don't know why. When I try this code, nothing happens, just a blank page. Here is my app.js . var app = angular....
0
votes
0answers
9 views

How to show validation errors thrown by node server in angularjs?

I am using angular-auto-validate npm package for client side validations in angular. I am very satisfied with the package on client side validation. Now I want to handle server side errors. Here is ...
0
votes
3answers
26 views

Issue with the controller of a UI Bootstrap Modal

I am new to Angular. I have created a component with a template (panel.html) and a controller (allPanelsRetrieved). When a specific button defined in the template is clicked, the showDetails() ...
0
votes
0answers
8 views

Is ng-option animation aware in angulajs 1.4?

I'm trying to use ngAnimate(v1.4) for ng-option but I couldn't find any animate event for it in angularjs documentation. Does anyone know if ng-option directive animation aware? Can anyone provide a ...
1
vote
1answer
20 views

CORS with Express.js and Angular2

I'm trying to download a PLY file from my remote Express.js server to my Angular/Ionic app. I have my Ionic app hosted on Amazon AWS right now. Here's the Typescript from the Ionic app: //this....
0
votes
2answers
20 views

change an array length from an input box of type number

I have an array that contains objects. I would like to change the number of objects in this array from an input box of type number. So each time the number in the input box is increased i increase the ...
0
votes
0answers
18 views

Angular ui-router doesnt resolve and work properly

While using ui-router i tried for resolve , is there any accesstoken in localstorage , if so proceed to state 'home' else state 'login'. But the program doesnt run as desired, if there is no ...
2
votes
2answers
25 views

AngularJS - Attach Alert Popup to Empty Input

I'm trying to configure my app to show an alert when the user tries to submit a form with an empty input box, but can't get it working even though I've a confirmation popup elsewhere in the same ...
0
votes
1answer
31 views

content script to auto fill user password form created by Angular [duplicate]

I have created a content script extension to auto fill user and password fields on webpage. It works OK in normal form like below - <input name="userId" class="form-field" id="userId" placeholder="...
0
votes
1answer
20 views

directive watch change of DOM attributes

I want to get x and y position of DOM element, so I put it in the directive: <div class="resize-drag" movable-item ng-if="!isEmpty(workingMenu.header)" data-x-position="0" style="border: 1px ...
0
votes
2answers
38 views

View not updating when it should

Disclaimer, I am an angular noob. So what I have been trying to do for the past few hours is toggle the authentication in my service with the click of a button which should show the user information ...
1
vote
1answer
27 views

How to call a controller function inside AngularJS directive

Controller in page : (function () { 'use strict'; angular.module('LVS').controller('LVSCtrl', LVSCtrl); function LVSCtrl($scope) { $scope.OnChange = function() { // do } } })(); ...
0
votes
0answers
14 views

Replace and recompile template [AngularJS]

We have an Angular 1.3.6 based system, that need to be customized - some templates need to be replaced. Now we are replacing the html files manually, and using $ocLazyLoad to retrieve additional ...
0
votes
0answers
17 views

Remove empty rows from the filter menu of ag-grid

I used cellRendererto to format the users column in the ag-grid filter menu - { headerName: "Users", field: "users", filterParams: { cellRenderer: function (params) { ...
0
votes
1answer
27 views

Ionic post data to server

I found this solution here, but it doesn't explain a lot so I can modify it to my needs. He is also mentioning a stack overflow question, but there are so many "different" solutions and I got confused....
0
votes
1answer
15 views

Origin http://localhost.com:8000 is not allowed by Access-Control-Allow-Origin when trying to upload image to Cloudinary using AngularJS

I am trying to upload images to Cloudinary using my Angular controller. The requests are unsigned, and I am not using any libraries. Its just a simple POST request, which worked when I tried it using ...
1
vote
0answers
26 views

cannot display json data from rest service in html page with angularjs

I have a problem when i want to show some records from my databse in html page : i have an empty array in html page. I have a restful service that shows my json data : http://localhost:8080/produits [...
2
votes
1answer
32 views

How to send data from parent component to child component in AngularJs

This seems to be a pretty straightforward problem, but I haven't got it's answer for quite a while. The question is, when you have a hierarchy of components, how do you pass data from parent component ...
0
votes
0answers
15 views

cordova encrypting fileUrl

I have this app where I take picture or select it from gallery then move it into file-system , save the imgpath for the image into sqlite db and display it, I'm trying to encrypt the imgPath for the ...
0
votes
1answer
20 views

Filter array in ng-repeat with

I have a simple question: I have an array of object which i iterate trough in "ng-repeat": Object: $scope.my objects= [ { value: '1', text: 'lorem ipsum...1' }, { value: '2'...
1
vote
0answers
18 views

show tab1 results on tab2 by clicking links (bootstrap + angularjs2)

Here is what i'm trying to achieve using bootstrap modal. When user clicks on a button, a modal opens up with multiple tabs The tab1 contains links, if the user clicks on links it should show its ...
0
votes
0answers
16 views

AngularJS importing external projects and responsive design

I'm very new to AngularJS and I came across the following problem. I'm building a page which should have a calendar at the centre, a side panel and a menu on top. I've built the project using ng new ...
0
votes
1answer
18 views

Angular $locationChangeStart prevent reload & leave page

Hi read a lots of posts about prevent relaod and leave page and I try to implement this solution on my SPA apps (angular 1.6) but it does't work $scope.$on('$locationChangeStart', function (event, ...
1
vote
1answer
37 views

AngularJS ui.router won't load template

I'm still learning AngularJS and having trouble with UI Router. It just won't load the template. Here's my code: <body class="top-navigation" ng-app="mixcontainer"> <div id="wrapper"&...
0
votes
0answers
31 views

Angular Digest Loop on ng-style

I have a filter that changes filtered object. But when I'm using ng-style="item.gridSize" My Filter: (The Algorithm for size Grid was taken (changed for my needs) from Here angular.module("custom....
0
votes
1answer
27 views

Change the property of a object in Angular which generated using a button click

In a project, I've used JsBarcode library to generate barcodes. Here I've used ng-click directive to generate the barcode in angular. Here I need to change the properties of generated barcode using ...
1
vote
1answer
18 views

How to make an ionic application run with ui-router

I try to create an ionic application and I want to add functionality to buttons by linking HTML pages using AngularJS. How can I do that ? I have linked a plunker. <!DOCTYPE html> <html> &...
-2
votes
1answer
20 views

Angular ng-repeat not working with JSON

I have a problem with my script in JS in Angular. When I want start ng-repeat that not working. This is my code: http://pastebin.com/GphceaSH And this is my JSON: http://pastebin.com/Qzdzzd94 I can'...
3
votes
1answer
25 views

How to click all the links one by one using protractor?

I have stored all the link elements in var as below- it("should click all the links one by one", function() { browser.get("https://angularjs.org"); var allLinks=element.all(by.tagName("a")); ...
1
vote
1answer
21 views

How do you use Angular JS to read multiple properties and values from a settings file?

I'm a bit new to Angular JS, and was hoping to figure out how to use an external settings file in conjunction with my app. Currently, I have my code running in a way that allows me to import my ...
1
vote
1answer
37 views

Clear the errors once input field is valid

I'm using AngularJS with node.js. I've implemented error handler as follows: node router effect.js: router.post('/', function(req, res, next){ req.checkBody('name', 'Effect name is required.')....
2
votes
0answers
39 views

AngularJS required input, set with code, invalid

I have a text input that is set to required. The field is a date range picker. When the code for the date range picker enters the text, angular is not recognizing the input as being filled. It is ...
0
votes
3answers
31 views

$scope variable not accessible from template

I'm trying to create SPA with angular js. Here is the code in my jsp page: <body class = "image1" ng-app = "myApp" ng-controller = "TasksController"> <div class="ng-view"></div&...
0
votes
1answer
22 views

Angular 1.6 $http.get unable to read from json

I am trying to read the json data from a static json file that I have for testing on a local web server but I cannot get anything to show up with using the $http.get() service. I looked at a few other ...
0
votes
1answer
28 views

Javascript to AngularJS directive

Has anyone converted plain javascript code of justgage chart into angularjs directive. I found couple over internet but did'nt work for me. <div id="g3"></div> <script type='text/...
0
votes
0answers
25 views

Can I use syntax/grammer in angular2 on angular1 ? What is the difference between angular2 and 1?

I started learning angular2 and get used to angular2 structure and grammar. However, my workplace required me to use angular1 to keep consistency and less import. Does angualr support angular2 syntax ?...
0
votes
2answers
38 views

Resolve a function and use its side effect to record data in a service

I am making a web page with ui-router. Before we enter the controller, I want some operations to be done: 1) create a temporary folder in the server and write some files; 2) record the name of the ...
0
votes
1answer
19 views

Translate String AngularJs with Variable

I want to Translate a String, with AngularJs filter and here i will put my code : item={ "_id": "58b9ee5fd7835400059c11f7", "privilegeParent": "58b9ec296aca0e2020257c4a", "create": { "at": "2017-03-...
0
votes
1answer
18 views

Angular + NodeJS: Read Files From Folder With Promises (fs.fileRead and fs.readdir)

I'm trying to read files from a folder using NodeJS and Angular. I'm able to iterate through the folder and access the files data, no problems here. My main issue i that i'm unable to pass the result (...
1
vote
0answers
16 views

Ng-click stops updating range after ng-change was used

I'm writing a simple app and I encountered a problem. I have a range element, and 2 clickable icons, like so: <div class="item range"> <i class="icon ion-minus" ng-click="...
0
votes
1answer
16 views

Sending form from Angular JS to Spring

I have simple application AngularJS and Spring boot. I want to pass whole form pre-filled by user to my app and register . Usually I had no problems - was passing JSON obj with correct structure and ...
0
votes
0answers
18 views

how to stop executing angularjs on first page load?

i m using angular js along with php for making seo friendly pages.. what i want is when someone visit the web url for first time it load normally with php than the links inside it by angularjs. so if ...
0
votes
0answers
9 views

Load a view with rendered model in controller angular.js 1

I am building a website in angular.js 1. In a controller, I need to load data from ajax than I have to set a specific html with values that has been got from some web service. Here is my service ...
2
votes
1answer
35 views

Angular Js http GET response is displaying in console log but I am not able to display ng-view

AngularJS HTTP GET response is displaying in console log but I'm not able to display it inside div. Here is my code I'm beginner I don't figure out why it is not working so I'm asking here. <!...
1
vote
0answers
20 views

Setting up tap:i18n in meteor project

I'm currently trying to use the meteor package tap:i18n in my project. Unfortunately I'm not able to use it. When I use the underscore variable notation I get an unexpected token error in my browser. ...
0
votes
0answers
20 views

AngularJS : Image Slider not working inside ng-view

The jquery image slider works when i put it outside ng-view div. But doesn't work when i move it inside directives or when it is injected into ng-view index.html <script src="http://ajax....
2
votes
1answer
16 views

On refresh angular application redirects to default route after using $locationProvider

I'm developing an application on angularjs. I tried to remove "index.html#/" from url and used $locationProvider.html5Mode(true); in my route.js file (full code snippet provided below). Now my ...