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
4 views
How to download rich text from server?
Is there any way to download rich text and have it retain it's text format as a pdf, doc, etc without having any of it's html tags still present by using Javascript? I am currently trying to built a ...
0
votes
0answers
3 views
How to protect excel sheet from editing (rows and columns) while exporting from json array in javascript
i am using alasql library to export json into excel and i want to protect my
excel sheet that is exported into that means no one can edit rows and column
only they can read the exported sheet
0
votes
0answers
3 views
AngularJS mwl calendar - tooltip if event is too short
I use the mwl calendar and if the event tooks e.g. only 30 min it looks like this:
My question now would be if there is a solution for this, e.g. how I can implement a tooltip for each event with all ...
0
votes
2answers
37 views
angularJs ng -Repeat over an array of json object
This is the format of json which I need to parse:
[{
"perAddress": {
"city": "Delhi",
"Street": "saket",
"pin": "101011"
},
"flag": false
}, {
"perAddress": {
"city": "Delhi",...
0
votes
0answers
22 views
How to create dynamic scope variables in angularjs
Here i added image click here
I want create the screen like this.
The select dropdowns and input fields should not effect on each other (right now if I select company, that is showing as selected in ...
0
votes
1answer
28 views
get id from controller
I need help to get id from my controller. I already try this code, but not working.
Html part:
<tbody>
<tr ng-click="read($event, report._id)"
ng-repeat="...
1
vote
0answers
28 views
SQl query to get Map id on passing Id value
Id InvID InvDate OriginalInvID FilterDesc
1 1 2017-03-01 00:00:00.000 0 First Inv Created
2 2 2017-03-06 00:00:00.000 1 ...
0
votes
2answers
16 views
Set limit to Textarea in AngularJs
<md-input-container class="md-block" style="margin-bottom: 6px;">
<label style="font-size: 14px; font-weight: 400; line-height: .75;">
Message
</...
0
votes
1answer
24 views
how to show friends list in php and angularjs
if($this->session->userdata('b_id'))
{
$b_id = $this->session->userdata('b_id');
$this->db->select('*');
$this->db->from('friend');
$this->db->where('...
1
vote
1answer
23 views
angular.element().scope function not working in fb script
After the response, I want to call angular function from outside js and it seems so surprise to me as this function throws an error
function _i(){
FB.api('/me', function(response) {
...
-4
votes
1answer
38 views
how to build a JSON object? [on hold]
I want to build a JSON object on client side so how to pass this to server?
using angularjs as my client side and java in server side
1
vote
1answer
12 views
Why Browser does not reflect changes made in JSP page or Angular Controller?
I am working on Spring MVC framework with Eclipse and Angular JS for FrontEnd Data Binding, I use Tomcat Server for Running the Project.
Project is running Properly, but when i open any JSP or ...
-1
votes
2answers
15 views
Show and hide button depending on texfield value using angular
This is my Html Code. There is two columns with two text fields. i need to hide the buttons if there is no value in the textfields. i need to do it in angularjs. iam got this task at my school. please ...
1
vote
0answers
12 views
platform-tools\adb.exe: Comman d failed with exit code 3221226356
When I run (Ionic run android )ionic project, it build success but there was an issue in deploying to device.
this is the error in my cmd
0
votes
0answers
24 views
how to sort the table in mean stack angularjs
I am using angular I need to sort the table now its sorting but its only sorting depends upon pagination .I want sorting over all the data from all pagination .
anyone help!!!!
<a href="" ng-...
1
vote
1answer
19 views
Trying to render html in ionic
I'm trying to render an html string so that it displays links, etc using Ionic. This is my very first Ionic app.
<ion-content class="home">
<ion-list>
<ion-item *ngFor="let f of item"...
0
votes
2answers
32 views
Adding up/down arrows in angular js
I have created table with sorter in angular js. But I am unable to display up/down arrows to my code.What did I do wrong?
var app=angular
...
2
votes
1answer
31 views
AngularJS : Adding animation when div tag is updated
I am stuck in this problem where I have a div tag which updates and shows a list of images. I want to add animation when the value in the div tag is updated in the transition from one set of images to ...
-2
votes
3answers
36 views
how to access nested json array using angularjs
this is my code and need to retrieve some parts of json data
this my json data,in this i need to retrieve topology-id,node-id,tp-id which is in nested json array so write some code just check that ...
0
votes
1answer
19 views
permission_denied at /: Client doesn't have permission to access the desired data
This is my first time using firebase, and when I try to retrieve data I can't get it to work.
I've implemented the firebase's authorisation and used it and can now see the user's data from any ...
-11
votes
1answer
47 views
How to retrieve result from this type of response
Response
_body
:
"����JFIF``��C ↵
$.' ",#(7),01444'9=82<.342��C
2!!22222222222222222222222222222222222222222222222222��"�� ↵���}!1AQa"q2���#B��R��$3br� ↵%&'()...
0
votes
1answer
20 views
angularjs rest call return xml in json format [duplicate]
I am using angularjs and spring mvc in my application. angularjs invokes spring controller using rest. The controller invokes external URL that returns XML.
Now, I want to send this XML to angularjs ...
0
votes
1answer
26 views
Angular complains about a missing module which haven't been declared at allI
I'm trying to define two angular modules myApp1 & myApp2.
And from myApp1 I'm consuming a service of myApp2.
Here's what I tried in JSfiddle
html
<div ng-app="myApp1" ng-controller="...
0
votes
1answer
34 views
angular.js - passing an object from directive to the view controller
*Please note: there is a Plunker link:
https://plnkr.co/edit/PAINmQUHSjgPTkXoYAxf?p=preview
At first I wanted to pass an object as parameter on directive click event,
(it was too complex for me), so ...
-1
votes
1answer
21 views
Angular app can't seem to find my controllers.js or app.js (Instantiate module error)
I seem to be getting the following error in my angular application when it looks for my app.js:
Failed to instantiate module myproject due to:
Error: [$injector:nomod] http://errors.angularjs.org/1.6....
0
votes
0answers
55 views
why when comparing the password is always not the same?
below is my code for encrpyt / create password =
encrypt: function(values, callback) {
const saltRounds = 10;
var salt = bcrypt.genSaltSync(saltRounds);
var hash = bcrypt.hashSync(values.pass, salt);...
-1
votes
0answers
16 views
Display GroupBy Data Only in AngularJS
I have a list
<ul ng-repeat="obj in data" >
<li>
<p>[[obj.country]]</p>
</li>
</ul>
Result
My goal is to group them by country.
I've tried
<...
0
votes
0answers
11 views
Angular Material AutoComplete Not Loading Options MVC
I am working on my AutoComplete widget, using Angular JS - Material, in C# ASP.NET MVC.
In this example, I'm trying to get an AutoComplete of States to work. I started with this tutorial, but need to ...
0
votes
1answer
15 views
Retrieving Json Object from action method in ASP.NET
I have searched and seen many solutions but yet I still am not getting any progress. I get no errors within the console and get nothing in return from the ajax request.
Here is action method code:
...
0
votes
2answers
32 views
how to access a particuar field in json array using angularjs
Here I want to retrieve some feilds from the json data.
This is my json data:
[{"ipaddress":"10.132.32.212","id":"18"},
{"ipaddress":"10.132.32.213","id":"19"}]
<!DOCTYPE html>
<...
0
votes
0answers
8 views
AngularJS qTip Without jQuery UI
I am looking for an AngularJS directive that creates tooltips similar to que ones on qTip but I do not want to bring jQuery UI into my component. Does anyone know where I can find this?
0
votes
0answers
18 views
Display Filter Result only if inputs provided - AngularJS
I have an input that will filter out a list of users.
<!-- Input -->
<input type="text" ng-model="search">
<div ng-repeat="obj in data | filter:search" ng-show="search.$touched" >
...
0
votes
3answers
26 views
Loop over Object in angular
Im new to angular,(but i have to jump into an existing app someone else made) so im not sure if my terminology is correct, but I am trying to create some dots for an existing carousel, so I need to ...
0
votes
1answer
20 views
AngularJs multiple custom directives failure [on hold]
I have a web page with multiple custom directives, 2 for this example. Each directive loads an HTML page with a few <a> tags on it to be used for routing on my SPA. After I was done working on ...
0
votes
1answer
29 views
How to pass multiple params using express?
I have passed two params from client to express endpoint it gives me results on my local machine but when i deploy to linux server its not working no errors and no response ? Do you think it could be ...
1
vote
0answers
15 views
Angularjs translation using custom filter
This is an old project upgraded from angularjs 1.2 to 1.6 that uses constant, service and filter to translation.
Strings was translated ok in all page scope, but after upgrading doesn't work. An ...
0
votes
0answers
8 views
uib-paginator one-time binding
Introduction
Now I'm using uib-paginator in my Angular 1.6 app. I want to be able to change some bindings after the application has started. E.g. in this case I want to change the language at any ...
1
vote
2answers
30 views
input [type=time] expected to be a date
I have an input like this :
<input type="time" ng-model="reunion.startHour" name="time"
placeholder="HH:mm:ss" min="08:00:00" max="20:00:00" class="form-control"
...
0
votes
0answers
12 views
Load time with AngularJS, Cloudant and PHP
I'm building a SPA that has the following process:
Load index.html
Load main app .js file
The JS file makes a http get
to a PHP file
The PHP file makes a CURL request to Cloudant for all
docs
The ...
0
votes
0answers
12 views
Get root element in controller constructor
I've got a simple controller driving a directive:
import template from './patient-create-component-template';
class PatientCreateController {
constructor(userSession) {
// something...
...
0
votes
1answer
21 views
Making a custom contextmenu in AngularJs
I am basically wanting to make a right click menu which will record comments on the clicked element. How do I make a contextmenu which closes when I click anywhere else except when I click on the ...
0
votes
0answers
14 views
Properties of $stateParams object are undefined in my service
I'm trying to get a property on the $stateParams object within a service and when I console.log($stateParams), it shows the property 'playerId' holding a value but when I console.log($stateParams....
0
votes
1answer
17 views
How to push an object into an array using a form in Angular JS
I'm new to angular and having some trouble setting this up. How do you setup a form and controller to push a new object into an existing array?
index.html:
<html ng-app="gemApp">
<div ng-...
1
vote
1answer
11 views
Post Form Data using Angularjs and PhpMailer
I have established a contact form on my website(built usng angularjs) and now trying to post data using phpmailer. Unfortunately, I am stucked. While clicking on send button, I am facing 500 Internal ...
1
vote
2answers
27 views
Get json object array names (metadata) using loadsh
I have a json array of objects and want to find a way to get the property names into another array.
[
{
"ID": 12345,
"SID": 1111,
"DataPoint1": [
{
...
0
votes
2answers
28 views
Angularjs http no response from Spring Boot
I'm trying to develop a small application to create index on local elasticsearch engine. I use angularjs on the front-end, and spring-boot on the back-end. It can create index successfully, however, ...
0
votes
0answers
20 views
How to “repeat” a list of elements in a scroll bar using AngularJS?
I'm trying to write a mobile application that involves displaying a scrollbar of tools/buttons. When the user scrolls through the list of buttons, I want to repeat that same list again.
To be more ...
0
votes
1answer
10 views
Angular: Content of a disabled input
I have a disabled input in a page with angular. It's just an input to match the formatting of its mutable neighbors. I want to set it to a date.
The model for the data is not formatted. I would ...
0
votes
0answers
16 views
Best practice to secure administrative fields in REST
lets say i a MCV Rest Controller to update my Account document in mongo db.
Account.class
public class Account extends Credentials {
private static final long serialVersionUID = 1L;
private String ...
1
vote
1answer
39 views
Cannot align text on right side of image in bootstrap
I tried to align text on the right side of image with
img {
float: left;
margin-right: 9px;
}
But it doesn't always work (on codepen it seems it works but not ...