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
2 views
How to have data synced between directive and parent scope
I know that this probably have been answered several times, and it might even be pointed out in Angular documentation, but I can't for my life understand how to do this 'correct'.
I have a directive ...
0
votes
0answers
3 views
Bootstrap Modal not hiding elements marked with ng-hide in IE9
I have a bootstrap Modal which has a text field (eg. Name) with required attribute set and a div to show an error message when the input field is $dirty and $invalid.
<input id="groupName" ...
0
votes
0answers
5 views
'ui-sref' of Angular UI-Router not working as expected
If I am working with href, UI Router works as expected. But, if I am using ui-sref, it is not working as expected.
I have two issue with the following example:
the anchors 'link-series-2-no-param' ...
-1
votes
0answers
8 views
Does API store any data while the process is on?
Does API stores Data permanently that are extracted from the website?
0
votes
0answers
4 views
How to dynamically set md-min-date/md-max-date of Angular Material md-datepicker directive?
I'm trying to walk thru month intervals with md-datepicker, therefore I created this codepen example for better demonstration:
http://codepen.io/anon/pen/ygBGOg
When clicking 'PREV' button start ...
0
votes
0answers
11 views
How to increment a numeric string value in angular js
I have numeric value as a String and I want to increment its value.
In java we used to do it with Integer.parseInt but I am not getting how to achieve this in angular.
My Controller Code:
var count="...
0
votes
0answers
13 views
Show the second value based on the first one in Angularjs
I have a list on ng-repeat with names. I want to take this name and pass to url as parameter to take his subjects. What i have done until now is that i can pass the name and get the subjects from ...
0
votes
1answer
13 views
Send an e-mail with attachment with angularJs?
I'm using $window.open() to send an e-mail to a specific destination, but I can't send it with an attachment or embedded image.
I have something like this:
$window.open('mailto:[email protected]?subject=...
0
votes
0answers
7 views
Get instance of kendo ui chart widget in controller
I have a requirement to create multiple keno line charts in a screen. Below is the HTML markup
<div ng-repeat="agent in chartAgents">
<div kendo-stock-chart="sales_{{$index}}" k-...
0
votes
0answers
27 views
angularjs $http.get nothing show
hi guys it's my first time i use AngularJS.
here is my AngularJS code:
var app = angular.module('apps', []);
app.controller('foodsCtrl', function($scope, $http) {
var url = 'http://localhost/...
0
votes
1answer
14 views
AngularJS select option initialize
I have this select tag:
<select class="form-control" data-ng-model="contact.title" data-ng-options="title.title as title.title for title in titles track by title.title">
<option></...
0
votes
1answer
8 views
Validate controls within ng-repeat: textbox and textarea
I am using Angular js, in which i have a textbox outside and an ng-repeat containing textbox and textarea. I want to check if the fields contain value when submit button is clicked. I am able to ...
0
votes
0answers
11 views
Angular chat client - 2 views with one controller
I build chat function in my web app and i am about to create chat functionality between logged clients. Here is my screen from application to show exactly what i want to solve
Screen of my app
As ...
0
votes
0answers
3 views
Adding test cases for a basic controller using Jasmine - AngularJS
I am trying to lay my hands on karma-jasmine and I am working on some basic examples to start with.
I have created one small plnkr which does 2 things only:
Add the numbers
display some hardcoded ...
0
votes
0answers
7 views
How to upload a blob file attachment to list item in SharePoint using REST API with AngularJS?
I am trying to upload a file from a HTML form as an attachment of a list item in a SharePoint 2013 list.
Now, I can upload every file, but only .txt files aren't corrupted, so only .txt files can be ...
-1
votes
2answers
23 views
complicated custom filter for nested ng-repeat
I've stuck for this for 2 days, tried so many ways still couldn't get it right. I can't change the API data so I have to deal with front end handling. I really need some help.
$scope.stationary = [{...
0
votes
1answer
17 views
AngularJS: Exclusive error handling in $q execution chain
Having an angular service that returns promise, is it possible to detect whether a consumer of this promise handles error ? I'd like to provide a default error handling in service, but ensure that it ...
0
votes
2answers
18 views
get value of angular js expression in window.alert in angularJs
Hi I am trying to alert the value of an expression in angularJs
I am quite new to angular and am just trying to work out how grab the value of the expression in an alert or in the console.
I am ...
0
votes
0answers
13 views
Angularjs typeahead is not working. I want to both condition drop down and input
HTML Code:
I am tying to use bothd condition in typeahead drop-down and input:
<div ng-controller="newFIncomeCtrl">
<div class="form-group col-md-4 in-inline err-group" show-errors>
...
0
votes
0answers
9 views
How to localize / internationalize baSidebar of Blur Admin
i'am trying to localize the baSidebar Navigation of Akveos BlurAdmin.
In the ba-sidebar.html i'am using the translate-filter like {{ ::item.title | translate }}
and the state ist set like:
function ...
0
votes
0answers
9 views
ChartJs set dynamic data with no matching y axis value
Hi i have chart js in my angular project. The barchart data is updated from the database.Some time my one of bar dosent have any matching value for particular y value. is there any option set value ...
1
vote
1answer
24 views
Load data dynamically when I change the date
This is my calendar object
$scope.uiConfig = {
calendar: {
height: 450,
editable: false,
header: {
left: 'title',
...
0
votes
0answers
12 views
Is there any option to Popup Window open in angular js?
How to show Popup Window open always,Popup not open when Browser setting enable,Is there any option to open popup always when browser settings is enable too or we can overwrite that popup setting ...
0
votes
0answers
14 views
How to call function on controller with Angular Material Dialog
I have an angular 1.5 typescript based app using angular material.
How can I call a function in my controller from a Dialog ?
In my example it's this.callBack() i would like to call when the user ...
0
votes
0answers
12 views
Ionic - Angularjs : $stateProvider couldn't get the nested views
I am using ionic to build a simple application , that consists of [index.html ] , [home.html],[about.html] , [ cal.html -- has additional and subtraction.html ]
The application navigates very well . ...
0
votes
0answers
18 views
$routeProvider in angular js
I want to make construction like below:
$routeProvider
.when('/', {
templateUrl: 'aptget/page.html',
controller: 'PageCtrl'
})
.when('/:language', {
templateUrl: 'aptget/page.html',
...
0
votes
1answer
24 views
How I can parse an array (from function) inside ng-repeat
Here is my prg-ctrl.js:
$scope.getDataOfProject = function(project, year){
var projectData = project.data[year];
var smthData = [];
for (var i = 1; i <= 12; i++) {
if (...
0
votes
0answers
16 views
Angular directive usage in multiple forms
I created an angular directive(an input for an amount). I want to use this directive to enter a value in different forms. The value is going to be save in the database in different tables. How the ...
0
votes
1answer
8 views
Ionic custom oauth2 redirect URL Angular
I'm building an android app with Ionic and cordova.
I have one wordpress website - where is oauth2 plugin installed with some access functions. I want first to get code and later send post to ...
0
votes
0answers
10 views
Monaca/Onsen with angularjs login page with postgresql
I deploy sample applicaion using Monaca/Onsen with angularjs and connect it with postgresql using RESTful API With Node.js
now I want to make login page depending on database users
this is first time ...
0
votes
1answer
20 views
Register method in AngularJS is not working
I have webApi deployed in azure http://pselleruserregistration.azurewebsites.net/api/Account/Register
when i am sending post request then it is not working but in fiddler it is working. below is the ...
-3
votes
0answers
9 views
d3Plus:how to load data dynamically returned from a service to d3plus treemap data value
I'm using the d3plus-treemap directive . When I have a static json data in my controller, the map is loading. But when I'm assigning the data returned from my service. The map is not loading. It is ...
0
votes
0answers
13 views
How to use custom filter in Angularjs with fusion chart?
I'm facing an issue in Angularjs with fusion chart, I need to set the data as per one of the value in json data. My fusion chart is showing the jumbled data. but i need to filter it as per ...
0
votes
0answers
16 views
Angular 1.5 component calling ng-change infinitily
I have a component, lets say comx,
angular.component('comx', {
templateUrl: 'someUrl',
bindings: {
model: '=',
onChng: '='
}
}
and its html is
<input ng-model="vm....
0
votes
1answer
15 views
Getting “#!/(state)” in url AngularJS states
I'm doing an application using OAuth so first of, a php-page is loaded to authenticate with OAuth. When finished the callback php script redirects to the start page of my angular application.
// ...
0
votes
0answers
12 views
Angular routing in JSFiddle with external files
I'm trying to make a JSFiddle using Angular routing in which my views are separated in several HTML files.
All the examples I've seen are using the following syntax:
<script type="text/ng-...
-3
votes
0answers
15 views
Use RESTservice data which returns in json format to create D3 chart
i am new to angularjs and D3 charts. Currently I have a requirement to consume a REST service which gives Json data and create charts. In need to filter the data (since we are planning to use one ...
0
votes
1answer
10 views
copy an $sce created object and modify its value
I have a variable which is like this:-
tableData1[$scope.tableHeadingsConstant[0]] = $sce.trustAsHtml('<div class="header12" id="runTitle0" style="cursor: pointer;">'
+ ...
0
votes
0answers
13 views
HTML is not displayed in div in IE but work perfectly in Chrome of AngularJS Application
In our AngularJS application, we are binding following HTML code to DIV.
We want to set HTML data in controller and then display it on HTML view page.
HTML ->
<div ng-bind-html="obj.description"...
0
votes
0answers
14 views
how to change id of inner html attributes in Typescript at the time of cloning
I have accordion and i am cloning that by using typescript, now i am stuck that how to change the ids of attributes of inner html divs. Please help me out on this.
public clone(): any {
for (let ...
0
votes
2answers
22 views
Passing value on Click event to another page using Angularjs
I am trying to pass a data value from one page to another using Angular. I am new to Angular so please bear with me if it sounds silly. Here are my HTML and Angular code. Basically, I want ng-model "...
0
votes
2answers
24 views
Dynamically call Angularjs directive
I am working on an Angular 1 app and I need to call different directives based on a value in a ng-repeat loop. I am using ng-if so far which renders that directive if it matches the condition but what ...
1
vote
0answers
15 views
Angular 2: Route data is undefined on page refresh
Data passed via route data attribute is undefined when the page is refreshed. I am using route protection and based on the privilegeId of the module, canActivate returns Observable boolean.
home....
0
votes
0answers
9 views
Angularjs - client browser fingerprint
Are there any js plugins for angular based frontend that has a standard way of collecting data for analytics on users based on the browser fingerprinting libraries like fingerprint2.js or clientjs?
0
votes
2answers
33 views
http get response in scope with ng-view
I'm writing a controller in AngularJS that calls http.get to an API, and returns a 0 (for now). I managed to display 0 on the console without problems, but I can not display it in the $scope on the ...
0
votes
0answers
10 views
How can I create new row on button click Angular UIGrid option,
Hi I want to create new row on button click, with two properties
the newly created row should be below the current row
the newly created row will contain dropdowns for each column.
like this:
$...
0
votes
1answer
11 views
$uibModal backdrop false not working
Need a semi transparent background outside the modal area.W hat I get is Opaque white area.Tried setting backdrop:false dint work.
var confirmInstance = $uibModal.open({
animation: true,
...
-2
votes
0answers
63 views
array resulting empty after push
I have the following code, what I want is separate the result from array of object wilayah, but I end with empty array of object when I click some button which execute coba function
What im doing ...
0
votes
0answers
12 views
$validator ignores $setValidity
I have a validator
model.$validators.passwordMatch = function (modelValue) {
var repeatPasswordIsValid = (/*some test*/);
return repeatPasswordIsValid;
};
And from another place I test ...
0
votes
0answers
20 views
How to check on exist then add, else ignore using firebase v3.6.4
I have this code on child_added using firebase 3.6.4
suku_kata.orderByChild("perkataan").equalTo(perkataan_standard).on("child_added", is_word_existed, add_new_word);
// Check if the word was exist
...