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
9 views
need to display deeper item in ng-repeat AngularJs
Get an object from server. look like this:
"courses": [
{
"id": 1,
"name": "piano",
"classes": [
{
"id": 1,
"name": "piano1",
...
0
votes
0answers
5 views
Unable to import the List module from immutable.js into Angular 2 project
I am trying to use the List module from immutable.js on a new Angular 2 project. When I do that, the browser tries to GET http://localhost:3000/immutable and fails with a 404 Not Found error.
Here is ...
-1
votes
0answers
9 views
angularjs filter customize by name and date
i'm new in angularjs so i need your help :)
i have json data like this
data = [{"start_date": "sampledate1", "end_date":"sampledate1", "employee":{"id":1, "name":"Name1"}
},{"start_date": "...
0
votes
0answers
4 views
in angularjs project Integrate Ckeditor and mathjax plugin
I have integrated mathjax plugin in ckeditor in angular project,
I can able to show the mathematical formula in the editor, after save the data in the database.
While retrieved the data from database ...
0
votes
0answers
10 views
passing Array data dynamically in URL to call webapi method (C#)
below is my json generated data from the backend
{"langs":[{"cisAreaId":100,"area":"Prog","name":"C#"},{"cisAreaId":110,"area":"Prog","name":"Java"},{"cisAreaId":120,"area":"Prog","name":"MS.NET ...
0
votes
0answers
18 views
dymanic value passing in templateUrl in angularjs
HMTL:
<form name="usrForm" novalidate>
<input-req form-name="usrForm" ctrl-name="myname" ng-model="user.name" my-title="Name"></input-req>
{{user.name}}
...
0
votes
1answer
14 views
How to hide group heading when child elements not present on user search
We added angular search feature for subjects. But I would like to hide subjects category if search keyword matching subjects are not present in respective group. Eg: We should hide "Sports & Arts" ...
2
votes
2answers
31 views
Read AngularJS expressions in a script outside the controller function
Because of the following quote in this thread
The best practice is never use JQuery or angular.element() for DOM manipulation inside controllers. Controllers are only used for our business logic.
...
1
vote
6answers
39 views
How to convert string into angular binding?
I have a string like var message = "you are moving to {{output.number}}";
I want this to be put to div element. i tried using $("#message").html(message);
but it just printed the whole string for me....
0
votes
0answers
15 views
How to check array length with default value in mongoose
When an array is declared in mongoose model it is creating a default array element with [0] by which the condition for array length fails .Can anyone suggest help.Thanks.
pepsi{
sales : [];
}
My code,...
0
votes
1answer
30 views
Angularjs Data Binding among Controller, Directive, and Service
I am trying to update content of a directive with the data coming from a service. It works like this:
Service (html5 canvas service) -> calls a method in controller on some action
Controller updates $...
-2
votes
0answers
30 views
Why Angular ngFor does not check if the iterable object existing?
I am complete new to Angular 2, and think it will catch any undefined variable, but it seems that it is not the case for ngFor, for example in following ngFor line, it seems that it does not check if ...
0
votes
1answer
48 views
Cannot read property 'index' of undefined
I am very new to Angular and was trying to use it on my Rails Application. But I got the following error.
TypeError: Cannot read property 'index' of undefined
app.js code
angular.module('ticket', ...
1
vote
3answers
47 views
Angular to convert Date and Time Data with filter
I have some unique data that I need to convert
Need to convert "01/23/2017" to 23-Jan-17 (Fri)
Also need to convert 0238 // I'm thinking that this is 2 hours and 38 minutes?
Finally convert 15:...
0
votes
0answers
16 views
AngularFire Uncaught ReferenceError: firebase is not defined
I am just adding Firebase config to my js file, but it is not initializing the Firebase object.
I have just added this to my app.js file:
var config = {
apiKey: "AIzaSyBTPWWVDDqAJCnYWM6-...
2
votes
0answers
27 views
How to Upload file using file-model directive in AngularJS and nodejs
Hello I am working with file upload concept In MEAN Stack.But file is not
uploading.I used the file-model directives.
here is my angular controller.js file function.
app.controller("...
2
votes
0answers
23 views
ng-init fails to call a method to the controller from ng-table on load two or more
I am using ng-table and each row in the table has ng-init which calls a method to it's controller. On selection of a Shift drop down table data gets populated and each row calls getAlltemplates() ...
-1
votes
0answers
14 views
I want to know that maximum numbers of column can be shown in ng-gird?
I have more than 30 colums in ng-grid and but few of the columns are missing and though they are visible on choose column option.
http://embed.plnkr.co/FADs8F/
0
votes
3answers
18 views
How to show custom date format in angular-bootstrap-datetimepicker input field?
I am using angular-bootstrap-datetimepicker for date time selection. I want to show dates in moment format "MMMM Do YYYY, h:mm a"("December 22nd 2016, 2:00 pm"). Is there any way to do it?
-1
votes
3answers
18 views
promising response from angular forEach which is having $timeout within it
I have an html button ,which has to be enable or disable based on an scope variable. Am assign that enable/disable action in an for each based on an condition. for that condition I need $timeout.
vm....
-1
votes
0answers
10 views
How to group by Month and sum same month branches by using anuglarjs ng-repeat html table
Branch Month Amount
Branch1 10 2000
Branch2 11 3000
Branch1 10 3000
Branch2 10 3000
Branch3 12 4000
Branch2 12 5000
Branch1 12 6000
How can i group by Month and ...
0
votes
0answers
15 views
Convert SVG to image in PNG
i am converting angular nvd3 chart to svg using html2canvas and canvg plugings but when i convert pie chart to png then i looks same as chart but when i convert line chart or area chart then its ...
-1
votes
0answers
20 views
ues Laravel instead of angular
I'm creating an app that is physically divided into 3 servers:
Database Layer
Logic Layer
Presentation Layer
for the Database Layer I use MySQL. In the Logic Layer I use Laravel API with JWT and ...
2
votes
1answer
29 views
Chaining array of promise returning functions with $q
I have an array of functions, where each function returns promise from ajax call.
var promises = [];
if (form.$valid) {
Object.keys($scope.Model.Data.FormFiles).forEach(function (key) {
var ...
0
votes
3answers
13 views
How to insert longitude & latitude in iframe in angualr js?
Hei
I am using angular and trying to implement iframe in it . I'ave tried many ways to insert longitude and latitude which are coming from database but whenever try to write something like this I get ...
0
votes
0answers
7 views
Intro.js not highlighting elements inside ul
I have been using angular-intro js for tutorials tour in my mock up project.It works fine expect the elements inside the ul tag is not visible as intro-js helper layer overlays the element I have ...
0
votes
2answers
43 views
ng-Model list is not updating in angular js
I am working on web app where user select 1st drop down list after selecting 1st drop down 2nd drop down load with data its depend on 1st drop down selection.
If 2nd drop down list have one item then ...
0
votes
0answers
15 views
How to clone a div dynamically in Typescript using for loop with incremental ids of cloned divs
Actually I need to clone the accordion div dynamically using for loop, so that it will clone my accordion at the time of page load .and i need the different ids in incremental counter order on newly ...
1
vote
0answers
21 views
how to enable side menu based on condition in ionic
Below are my HTML code which am using to enable side menu using ionic framework
<ion-side-menus enable-menu-with-back-views="false">
<ion-side-menu-content>
<ion-nav-bar class="...
0
votes
3answers
28 views
Best way to store wordings in my web application?
Hi i want to store wordings used in my application where i could easily get them and use/reuse them.
Some example of wordings like loading messages or validation messages, or any information ...
0
votes
0answers
10 views
How to pass multiple Arrays from AngularJS to Spring Controller
I am trying to pass multiple list from AngularJS to Spring controller through a POST call. If I send just one list as mentioned below it works fine on the Spring controller but would like to know the ...
-2
votes
0answers
22 views
I want to show a pop up chrome but will you help me get out of the page press release?
function SaveEmailAndPhone() {
$.ajax({
url: '@Url.Action("O`
`fferContactForm", "SentShipment")',
type: 'POST',
data: $("#myForm").serialize(),
...
-2
votes
0answers
27 views
how to connect two tables in database and display data by angluer [on hold]
I have two tables in mySQL database. The first one for users and the other for orders.In orders table consists of col user-id. This col have id of users in users table. I want to get data from orders ...
-2
votes
0answers
11 views
angularfire 2.1.0 requiresignin usage
I am trying to control access to a page by using the requireSignIn method but I am constantly getting below error
TypeError: auth.requireSignIn is not a function
can someone point to an example of ...
1
vote
0answers
33 views
how to reduce RestFull Api response size?
I have a web site witch using Angularjs to connect to An api written in php to get data and perform action and ths api send a json result. in checking site performance I found that my server response ...
0
votes
0answers
13 views
Best way to refesh the angular ui-grid data. State refresh or feed new data to $scope.gridOptions.data?
I have an Angular UI grid in my page. When the user double clicks one row, it shows a modal with the row data which the user can update.
Post successful update, i need to show the latest data in UI ...
-1
votes
0answers
17 views
Angularjs Shift Planner for multiple employees [on hold]
I am trying to create a shift planner with multiple employees in column 1 and the days from Mon-Sun as table header. On clicking on any day in the entire week for a particular employee, a modal will ...
0
votes
3answers
37 views
dynamic radio button generation in angularjs
from this json array I need to build dynamic radio buttons with mobile numbers in angularjs:
challengeSelectInfo:
[
{"mob_0" : "xxxxx1211"},
{"mob_1" : "xxxxx1211"},
{"mob_2" : "xxxxx1211"...
0
votes
1answer
15 views
jspdf : add image to pdf but abobe reader can't read the file?
I am using jspdf in my project to convert some charts to a pdf. My framework is angularjs 1.5.6, the chart is generated by chart.js. The html fragment is as below:
<div name="charts" class="charts"...
0
votes
1answer
26 views
how to add dynamic rows in html having select fields in angularjs [on hold]
I need to develop UI page, like naukari add/edit skill, which is able to add dynamic rows with select fields, after submit store the data in db, when we click on add/edit skill same data should be ...
-1
votes
0answers
14 views
need to get dynamic tool tip Angular
select(multiple id="availabelist" size="10" style="width:100%;border:none;font-size:12px;" ng-change="OnAvailableChange()" ng-model="selectedAvailGroups.selectedGroup" ng-options="i as i.group_name ...
0
votes
1answer
17 views
Angular Material md-grid-list overlaps on page refresh
I am working on a angular material application. i have a page where i need to list number of languages. i am using md-grid-list instead of conventional ul and li.
However when the page loads/refreshes ...
3
votes
0answers
54 views
Angular UI Router - prevent $state from reloading
I'm using Angular 1.3 and Angular UI Router and want to check user auth before loading a page.
For some reason, if $q.reject() is returned, the page is reloaded anyway (I can see it reload, and see ...
1
vote
1answer
25 views
How to convert NativeScript web Application to mobile application
In Nativescript documentation, it is been said that it allows you to build mobile apps using the same framework—and in some cases the same code—that you use to build Angular 2 web apps. But when I try ...
0
votes
0answers
8 views
How can we standardise Bower package versions to avoid dependency conflicts? [on hold]
How can i standardise Bower package versions to avoid dependency conflicts when running the project in different environments?
-2
votes
0answers
41 views
Need help in designing the html structure based on api response [on hold]
We are currently building an app in Angular JS , bootstrap and CSS3. Currently we are working a range search , please find below request we send to backend and also the response we get from it. We ...
0
votes
1answer
23 views
what do the default set of resource actions return in angular and how can I modify the returned asset?
I've given an example code below and I want to add an element to the users array. When I console log the users object I'm getting an array with 1 element but it has 3 resource objects, a promise and a ...
0
votes
0answers
21 views
AngularJS Ionic create dynamic table with 5 columns
I'm trying to create a dynamic table using ionic and AngularJS with exactly 5 columns for each rows. How do I traverse JSON DOM so I don't repeat the same record 5 times each row. Here's the structure ...
2
votes
4answers
42 views
Angular - loop over nested javascript arrays
How can I use ng-repeat to loop over data that contains many nested array data?
I have data that will have many "Segments"
Example:
confirm.booking.flightData[0].Segments[0].FlightNumber
...
0
votes
1answer
26 views
one controller two view
I have a view where the user gives an input and display it in another view.
view 1:
<ion-content ng-controller="controller">
<input type="text" ng-model="name">
<button ng-click="save(...