Tagged Questions
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 ...
0
votes
0answers
3 views
Multiple directives [directive2, directive1] asking for transclusion
I encountered this error when trying to move clutter away into a directive.
function Ctrl($scope, $rootScope) {
}
angular.module('app', []);
angular
.module('app')
....
0
votes
0answers
5 views
How to assing class if input is invalid?
I have the following HTML element:
<input type="text" ng-model="form.artist" ng-class="form.artist.$invalid ? 'error' : ''" required ng-minlength="4">
But it does not work when I have invalid ...
0
votes
0answers
23 views
Controller loads 2 times if $location.path() changed
I'm facing a distrubing issue with my website. I'm using angular and typescript for development, the problem is : When a user logs in successfully, i'll redirect him to another page like " dashboard" ,...
-2
votes
1answer
22 views
Angular 2 get Access to children
hello there is some angular2 dom find operation ? I dont want to do something like this : "this.uploadDiv.nativeElement.children[0].children[0].children[0]".
I miss Jquery so much xd There is some ...
0
votes
0answers
11 views
angular2 - service return a observable in subscribe
i have a problem.
My service return one object with more array, i send in navparams for my page and subscribe, but in my page returns observable, i dont use observable.
How resolved this?
service
...
2
votes
0answers
10 views
htaccess rewrite to dist folder and set AngularJS html5mode true
I have an application in AngularJS where I need to set html5mode to true in order to remove the hash /#/ from URL. The application in minified version is found in the dist folder.
QUESTION: My goal ...
0
votes
1answer
8 views
How to set the expiry time for a cookie in Angular js?
Suppose i have a stored a value in cookiestore. I want to set the expiry time also. The below is the snippet which i had written. Could any one give working code of placing a value in cookie, expiry ...
0
votes
1answer
11 views
Injecting angularFileUpload not working
this sound like a simple question but i am a newbie with angular, basicly i want to use AngularFileUpload to upload images on my website, so i did this when i initialize my app:
var app = angular....
0
votes
0answers
21 views
ng-repeat in complex html table
I'm trying to achieve table structure attached in the image :
Composite Class Routine
So far what I've tried can be seen in the following Plunker:
https://plnkr.co/edit/4WiWKDIM2bNfnmRjFo91?p=...
0
votes
1answer
11 views
Angularjs - How to generate tables column dynamically onclick of ng-repeat element
I m getting such type of response from backend.
[
{
"id": "1",
"name": "Roshan",
"av": "1000",
"compname": [
{
"id": "43",
"cname": "TCS",
"...
0
votes
0answers
7 views
Building a new Module in odoo and Getting data from a web service with AngularJS
I want to create a new module in Odoo 10.0 .
In this module there is many requests to another web application using Restful calls.
I would like to know is it possible to use AngluarJS framework to ...
-1
votes
0answers
8 views
bootstrap tour not working in angular-ui-grid elements
Am using angular ui grid in my project and implementing bootstrap tour in it. bootstrap tour works fine outside the grid elements. but when i select any element inside the angular ui grid the selected ...
0
votes
1answer
30 views
Executing function in ng-repeat give error
I have to run a function during a ng-repeat like this
<tr ng-repeat="x in listaService track by $index">
<td>{{x.label}}</td>
<td><span ng-show="showNoRole(x.label)" ...
0
votes
0answers
13 views
Data not being populated in drop down from JSON Response from WebServices in Angular js
I have a WebService which is sending me the JSON value like this
"electricity":{"selectedElectricityBoard":"ABCD","electrictyConsumerNumber":"12345","isElectricityBoardChecked":true }
but now the ...
0
votes
1answer
8 views
Ionic/Firebase Success function after Auth
I have this login function, which is working. But I'm trying to redirect only if no errors are catched. I tried this code below, but this doesn't work the way I want, any ideas, like a success ...
-1
votes
0answers
34 views
Cannot access array from JSON Object
I'm using Ionic to create an app, and in the controller, I'm getting an object that's resolved from the app.js. This object has several properties including an array like so:
{
"objectId":"id",
...
2
votes
2answers
33 views
When should I use different controllers in AngularJS
I am trying to make a search function in AngularJS. Here is my code for controllers:
app.controller('SearchController',['$scope', '$window','SearchService', '$cookies' ,'$location','$routeParams',
...
-3
votes
0answers
21 views
Is any frontend application secure? [on hold]
I am working on the frontend application (angular) of a project and I want to know if any security best practices or libraries are there since in the end the user will get all the source code of our ...
0
votes
1answer
15 views
Focus on other input after typeahead-on-select angular-ui-bootstrap
I have a problem with angular-ui bootstrap:
I have 2 input:
<input type="text" ng-model="selected" uib-typeahead="state for state in states | filter:$viewValue | limitTo:8" typeahead-on-select="...
0
votes
0answers
8 views
unit test case for directives controller
I am new to unit testing and I am trying to test the directive's controller
JS:
module.exports = angular.module(
'apt.product.details',
[])
.directive('aptProductDetails', require('./...
0
votes
1answer
23 views
Angular JS can I load a service just on the js I need it and not in the app.js?
I tried doing something like:
var vehicle_info = angular.module('psngr.vehicle_info', []).factory('vehicle_info', ['$rootScope', '$timeout', '$q', vehicle_info]);
var name = vehicle_info....
-1
votes
1answer
14 views
How to do validations in ionic app?
I am using ionic framework for developing job portal app in ionic. i wanted to do validations in registration page like email id(check already exists in database or not) , password(min length , max ...
0
votes
1answer
18 views
How to fetch json array data into highcharts in angularjs
I want to display a bar graph using highcharts.I am devoloping an app in play framework(play-java),in which I return a response from the java api which contains data in json format.It contains a field ...
2
votes
1answer
22 views
$watch vs ng-if performance
I'm trying to get information about performance in an AngularJS application. I wonder if there is any performance difference between using $watch or ng-if, as we can use one or the other to obtain the ...
0
votes
0answers
21 views
How to post User scripts to $window.open method in angularJS
I want to open - https://myUI:88/openURL/ (e.g.: On click of a button, it should redirect to this https://myUI:88/openURL, like it happens in payment gateway) and then, I have to pass the below user ...
0
votes
3answers
15 views
AnguarJS with ES2016 load config module
I'm trying to start a new Angular 1 Application based on ES6. I use webpack and the babel-loader to convert the JS.
My problem now is to load an own config module. Please have a look at this:
// ...
0
votes
0answers
15 views
How to get all the users corresponding to the acl role?
I need to get all the users from that role. I already know the code for this, but I don't know how to get a user from the role.
I only know that I need to use the getUsers() function on the role but ...
0
votes
0answers
9 views
Uib-Timepicker bootstrap not working properly after minification
Time Picker in the bottom right corner of the image is having bug after minifying the uib-timepicker directive.
The arrows used in increasing and decreasing time lapse are broken.
https://i.stack....
0
votes
0answers
17 views
Adding single quotes to a string returned from UI in SQL Server
I have a string passed from the UI to SQL Serever stored procedure as
Customer_name = xyz and loc = dfg and area= kmn
I need to code it in such a way that my final result should be
Customer_name =...
0
votes
0answers
13 views
Angular - ng-click function on transcluded directive content is not triggered
I have two directives, parent directive should simply wrap around its child. The transclusion is used for this purpose.
However, then any other directive, such as ng-click, bound to the child ...
-1
votes
2answers
18 views
Multiple collection using in same table
I have multiple collections like objectives and initiative etc... I want output like this using angular
I want output like this
My sample collection data is :
$scope.objectives = [
{id:1, name:"...
0
votes
2answers
20 views
Order by Date AngularJS (Ionic
I'm trying to show an accordion list ordered by date. This date is in JSON format, which is not friendly to the user. However, if I format it the way I want to, I can no longer use it to order the ...
0
votes
1answer
23 views
how make search for last week with angularjs bootstrap using $watch
<a href="" ng-click="(search.order_date>=30/11/2016)">Last 7 days</a>
<tr ng-repeat="item in filtered = items | filter:search | startFrom:(currentPage-1)*entryLimit | limitTo:...
0
votes
0answers
16 views
Error on “npm install --global bb-lp-cli”
While installing "npm install --global bb-lp-cli" I get the following errors. I am using nodejs in the server.
-6
votes
3answers
35 views
What is the use of IndexOf() function [on hold]
How the below code works and what will the output of this below statement?
($scope.names.indexOf($scope.addMe)==-1)
0
votes
0answers
17 views
Upload excel file using angularjs to sql table
I am trying to make a contact module in sql server 2008 r2, where I have created some table for keeping contact info of the business entities. I want to create a front end using angularjs using which ...
0
votes
1answer
19 views
I want to refresh particular view which is display student info without page refreshing in angular js
controller.js
var app = angular.module('myApp', ['ionic']).controller('AppCtrl', function($scope, $http, $ionicSideMenuDelegate, $ionicPopup, $ionicListDelegate, $ionicModal, $window, $timeout, $...
1
vote
3answers
41 views
Change $scope variable value in angularJs
I have three buttons here wish to make $scope. -> q <- q as variable. How can I achieve that. This is just a test code my actual problem is based on making q as variable so please do not suggest ...
0
votes
0answers
16 views
Detect mixed content with javascript
I'm looking for a way to detect (in javascript / angular) whether there is one or more mixed content issue in order to inform the users that this page uses http links instead of correct https ones.
...
0
votes
1answer
16 views
File Upload in AngularJs - Error: XMLHttpRequest cannot load URL - status: -1
I am trying to do a file upload option using AngularJs in Jive. I am trying the below code, but I am getting the error as below:
OPTIONS https://test.com/MyApp/api/Seasons/UploadImage 405 (Method ...
0
votes
1answer
32 views
Calling $http.delete but nothing happens
I'm actually working on a webclient calling a REST service.
After my last question, the GET request is working now.
Now i want o implement a DEL request using angulars delete method.
In the following ...
0
votes
2answers
36 views
Inline angular template
I've been trying to make a small website that has a main page where a part is changed using templates. I've made an HTML file that contains a small menu for choosing what to show and two templates. If ...
0
votes
0answers
23 views
component does not update view
Maybe I'm completely on the wrong way.
I try to write a smart component loading it's data from a service.
The simplyfied example just simulates the delay of the backend.
If the components internal ...
-3
votes
3answers
39 views
how to convert timestamp to full time
i did :
<button class="btn btn-md btn-block" ng-click="o.openOrder($event)"><i class="fa fa-refresh fa-spin"></i>TRADE NOW</button>
and :
self.openOrder = function (event) {...
0
votes
0answers
25 views
uniquely identify images from json in anglurjs
enter image description hereThanks for reading me creating app in ionic / angular and fetching the data form json which working quite well but it having some repeated images like one company have ...
-1
votes
0answers
38 views
Javascript regex for ng-pattern, match except special characters
<div layout="column">
<md-input-container class="md-block" flex-gt-sm>
<label translate>signUp.form.companyPhoneNumber</label&...
1
vote
1answer
26 views
Angular universal installation on existing angular 2 app using cli
I am facing a few issues while implementing the universal cli on existing angular 2 app by following the instruction from the link below
https://universal.angular.io/quickstart/
On the first command ...
0
votes
1answer
15 views
IONIC/ANGULARJS Dynamic html based on properties / data
Im new to ionic v1, The goal is I'm creating a dynamic html page based on the data provided by a json data but the problem is the ng-reapeat is not rendering the images upon using the ng-bind-html.
...
0
votes
0answers
8 views
Prerender.io + Angularjs 504 error
I have a problem with local prerender.io on my VPS (DigitalOcean).
Configuration: Ubuntu 14.04, Prerender.io (local), Angular.js, Lavarel, Nginx, Apache2, VestaCP.
I have installed prerender.io and ...
0
votes
0answers
15 views
how ui-grid pagination customization?
Using Ui-grid pagination, want to display 20 records per page, for 100 pages. i achieved this. But, i want to display like
In pagination display 8 elements like < 1 2 3 4 5 ... 99 >. first and ...