127 questions
2
votes
1
answer
307
views
How to work with an old angularJS 1.5.5 app
I have to work on an old AngularJS 1.5.5 app for maintenance purposes but I don't know how to setup a good env for it.
Which version of NodeJS/NPM should I install to make it working with the gulp ...
0
votes
0
answers
99
views
override templateurl for component in angularjs1.5
I want to override the templateurl of the component.
Lets say I have below component.
angular.
module('myApp').
component('greetUser', {
template: usertemplate.html,
controller: function ...
0
votes
0
answers
60
views
How to combine an AngularJS component and directive to enable compilation?
I need to refresh one HTML element at certain times. The element is currently generated by a component. I've managed to add a directive (the Attributes example at AngularJS Reference / $compile) to my ...
1
vote
0
answers
295
views
Update angular-moment-picker to use a different time zone
I'm using angular-moment-picker with moment-tz and it correctly uses the time zone originally set, but when I change the time zone for the model, the picker changes back to the local time zone of the ...
-1
votes
2
answers
341
views
jquery.marquee.js can not run with angularjs
i'm a newbie of AngularJS (using v1.5) anh now I have a problem: I use javascript jquery.marquee (https://aamirafridi.com/jquery/jquery-marquee-plugin) in html same that:
<script type="text/...
0
votes
0
answers
849
views
Set input with datepicker to any string in AngularJS 1.5.8
this may be a simple question, but I have looked and cannot find my answer...
I have an input box with an Angular-UI Bootstrap datepicker:
<input type="text" class="form-control"
id="id" ...
0
votes
0
answers
382
views
applicationinsights-js and Angular JS 1.5
Is it possible to use Application Insights with Angular JS 1.5.x?
The snippet from this page seems to require a static key, but we need to specify this at run time, per environment:
<script type="...
5
votes
1
answer
2k
views
Two way data bindings does not trigger $onChanges in Components
Two way data bindings not updating between components
I am setting up inter component communication using two way data binding. I have one parent controller which fetches data from AJAX call and sends ...
0
votes
1
answer
194
views
Readymade debugging tools for Angular JS 1.5
I am new to Angular JS that wise I ask a silly questions regarding debugging tools for Angular JS 1.5
-1
votes
1
answer
43
views
AngularJS JSONP success funtion not working
I want to make a cross domain request to JSON file residing in another machine from my machine. I used the below code to make that call
$http.jsonp('http://10.2.1.1/testdata/samplefile.json?callback=...
0
votes
1
answer
116
views
Select dropdown is not selecting ng-model with ng-options
Very new to angular and currently stock in something
I have a dropdown that is set up like this
<div class="col-md-3" ng-repeat="item in templateCtrl.template.templateDetails">
<select ...
0
votes
1
answer
38
views
AngularJS1.5 injector issue (MacOSX)
Hey all I'm getting this Error Message when trying to use 'gulp serve-dev' on my codebase (https://github.com/CraigOldfield/AngularJSWork). The steps to reproduce where as follows:
Clone the repo onto ...
0
votes
3
answers
7k
views
How to import an Excel file in to a database using angularJS1, hibernate(4.3.5), Spring(4.2.4)?
I want to import an Excel file into my database using angularJS1, Hibernate 4.3.5, Spring mvc 4.2.4. The Excel file is imported via a window (table consisting of children "last name, first name", and ...
0
votes
1
answer
450
views
AngularJS 1.5 bind and compile html to modal
Pretty new to AngularJS and I feel like I've hit something I don't quite understand. I have a AngularJS component that is opened by a UI-Boostrap modal. The modal body can contain a nearly infinite ...
1
vote
0
answers
425
views
angularjs and uiGrid
I have problem in using ui-grid with components in angularjs version > 1.5. Can someone help me to give me a method to do that? Because I don't use scope and in the documentation of ui-grid is for ...
0
votes
1
answer
132
views
Angular 1.5.5 render html based on return value of an $http call
I want to know the best way to proceed given the following information:
I have a controller which makes 2 http calls using a factory.
DataFactory.getTestDisplaySections(testID).then(function (...
1
vote
2
answers
1k
views
Angular 1.5 component - template not rendered after converting from directive
I have an Angular directive (myUser) which is working. It's defined in an AngularJS 1.5 project, using TypeScript like this (I'm assigning the controller directly inside the directive) . The directive ...
0
votes
1
answer
141
views
Postgresql SELECT without hardcoding item
I have a simple PostgreSql query that looks like:
$params = array();
if ($audienceId === x) {
// all teachers
$pullRecipients = $db -> prepare(
"SELECT email FROM app.employees WHERE ...
0
votes
0
answers
183
views
How to slide one by one LI's as prev and next using jquery
I am trying to slide list items as previous and next one by one. My example will look like below
< Li1 List 2 ulList 3 List 4 Li5 >
After click on Next(greaterthanIcon) Li1 should be hide ...
0
votes
1
answer
36
views
Validate expression in Angular 1.5 with operators
I have this expression in Angular 1.5 :
{{(var1/var2)*100}}
It show me a result but how can I validate inline if the value of var2 is 0, the result of the operation would be 0 inmediately??
Thanks
0
votes
1
answer
276
views
AngularJS 1.5.5 Directive: $element.find() / $element.children() does not always work
This is a sample directive I have created to help understand the issue described in the title:
define(['angular'], function(angular) {
'use strict';
var randomElement = angular.module('...
2
votes
2
answers
3k
views
How to pass a template via bindings to an AngularJS Component
I'd like to pass a custom template, via bindings, into an AngularJS Component and render it using his scope. Something like this (pseudo-code, this is not working):
angular
.module('myApp', [])
....
2
votes
1
answer
259
views
How to make the image appear front/back on click using angular1?
I would like to implement in such a way that , when we click the image ,the selected image should appear front and the rest of the images should hide behind the selected image .
I have got the code ...
1
vote
1
answer
6k
views
Using Angular 1.5 - Can you have a component inside another component's template?
New to angular 1.5 and trying to better understand component communication. Wondering if I can have a component inside another component's template? And if so, how do they communicate with one another ...
0
votes
1
answer
312
views
Material design lite not formating form elements on navigation
I'm using material design lite for a proof of concept. I have a page with a form that will be pre-populated with backend data when loading. I noticed that when navigating using angular, the form field ...
0
votes
2
answers
69
views
angular js1 basic application using http-server doesn't enter the controller
Below is the index.html file:
<html ng-app="myApp">
<head>
<title> My Contacts App </title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular....
-2
votes
1
answer
101
views
How to change value of scope within a function - Why is my code not working?
Simple ng-class binding is not triggered when called inside a function, how can I resolve this?
$scope.afterHide = function() {
$scope.inputState = "fade-in";
}
<label ng-class="...
0
votes
3
answers
68
views
Why cannot I add new list in a table in angularJS 1.x?
I have example code below where I am supposed to create a list of items.
<div ng-hide="listTrigger">
<!--FIRST TABLE-->
<table class="table ...
0
votes
0
answers
200
views
How to update Parent component about the data that child component modified(angular 1.5)
we are having below design in our application.
<parent component>
<child1 component>
</child1 component>
<child2 component ng-if="child1 is completed">
</child2 ...
2
votes
1
answer
134
views
how to bind input text and combo box in angularjs 1
I have two controls in a form.
zip code - (input type text) and city - (select options)
The back-end rest service sends json object which will contains zip codes and city names. I want to change ...
1
vote
0
answers
35
views
How to update to angular 1.5
I am working with the code from below link http://ionicmaterial.com/ and wan to work with angular 1.5. I have checked the package.json and they have not specified any angular dependency.So don't know ...
1
vote
1
answer
918
views
Angular 1 and TypeScript not binding to variable
I've got the following code, where I expect the content of the property variable to be displayed in the page. I read a couple of posts and tried to find out what I'm doing wrong, but couldn't find the ...
0
votes
2
answers
196
views
Trying to shorten check conditions using or in ng-if directive. Comparing series value with multiple times as there are many values to check in or
<img src="img/temp.png" class="img-responsive" ng-if="series === 'Temperature' || series === 'T' || series === 'Temperature-138828'">
I tried like this, but it didn't work:
<img src="img/...
1
vote
1
answer
3k
views
AngularJS 1.5 component ng-repeat display as table
How to display ng-repeat in a component as a table? Why is my item component not displaying data as table rows?
Here's a Plunker and the code as well:
index.html
<body ng-controller="MainCtrl as ...
0
votes
1
answer
530
views
Need to merge row in slick grid. Need an alternative of rowTemplate() functionality in grid-ui in slick grid.
We have rowtemplate() in grid-ui, can we have same kind of functionality in slick grid.
I have to merge alternate row and display data in that merged row.
Usage of rowTemplate in grid-ui, I need ...
0
votes
2
answers
587
views
Referencing gridOptions from angular ternary operator
I have a ui-grid that has a toggleFilter button:
$scope.gridOptions = {
...
enableFiltering: false,
...
}
$scope.toggleFilter = function () {
$scope.gridOptions.enableFiltering = !$scope....
-1
votes
1
answer
3k
views
How to export HTML table in Angular JS? [closed]
I have created a simple table in HTML file. Now I need to make it exported in PDF or Excel or CSV format in Angular JS? Is there any easy way to do that?
0
votes
4
answers
3k
views
How to append dynamic query parameter in HTTP get URL in Angular JS?
I am new to angular JS. I have one controller (.js file) in which I wrote a function to make a http get call to back-end. Like below:
$http({
url: "services/rest/1.0/...
0
votes
1
answer
579
views
How to update text field value based on comparision with dropdown value in Angular JS?
Hi I am new to Angular JS.
I have one HTML file which has one dropdown and one textarea. Text area value will be updated based on selected dropdown value. Note here: textarea won't display the same ...
1
vote
0
answers
466
views
AngularJS 1.5 Decorator not working for $log
I've decorated the AngularJS $log service, but I can only see it load the config and none of the $log methods are decorated. This used to work and I have a lot of $log.info(...); in the application ...
1
vote
0
answers
440
views
Can $transclude be used to get interpolated text content?
Is there a way to get transclude content after it has been interpolated using $transclude in a controller? I want the transclude to be performed without any alteration, but I need the interpolated ...
2
votes
0
answers
1k
views
ESLint Recommended Shareable Config for EcmaScript 5
I've setting up ESLint for a legacy project that uses ES5, but the shareable configs all seem to be ES6. So after pulling in eslint recommended and google I've had to start adding extra config to ...
3
votes
0
answers
1k
views
Ng-mock: $compileProvider doesn't have method 'preAssignBindingsEnabled`
I've been rewriting directives in Angular 1.5.8 to components. I want to write unit tests with '$componentController` just like described here: https://docs.angularjs.org/guide/component.
The ...
0
votes
1
answer
442
views
How to bind Array properties with ng-tags-input autocomplete
I have the following code for generating the tags in ng-tags-input
$scope.loadTags = function () {
return $q(function (resolve, reject) {
resolve(vm.campusesList);
})
}
Inside the vm....
0
votes
1
answer
51
views
Issue in accessing textbox value in angular js 1?
I am calling function on ng-keyup and trying to pass a textbox value which is not actually got passed and got "undefined" variable
html code
<md-input-container class="md-icon-float md-block">...
0
votes
0
answers
98
views
Converted AngularJS 1.3 directive to 1.5 Component Fails Silently
I'm converting an Angular 1.3 project built in .net to 1.5 components with typescript.
I have a directive that I have boiled down to its simplest possible form. The directive looks like this:
app....
4
votes
1
answer
4k
views
Downloading a PDF using JavaScript that is Cross Browser Compatible
I can download a PDF using AngularJS in Chrome, but this doesn't appear to work in the latest FireFox, Internet Explorer 11 or Edge (assuming it doesn't work for IE10 either), and I know a shim is ...
0
votes
2
answers
309
views
Reset Angular 1.5 view model
I have a quite large from, I trying to reset it in button, but it did'nt work as expected.
See my code below
function someCtrl() {
var temp;
var vm = this;
someService.then(function (res)...
1
vote
0
answers
319
views
Laravel 5.1 DB::table chunk for a Restful API and Angular.JS
Is there a way to chunk millions of records in a Restful API call?
I am using Angular.JS / Ionic for the client and have a restful API that works great with smaller number of records about 10,000. ...
1
vote
3
answers
3k
views
how to inject momentjs in typescript in AngularJs 1.5
I want to inject the momentJs library in my typescript code to do operations on a Date object. But I am not familiar with injecting typescript through angularJs, since it is little different from ...