Tagged Questions
0
votes
0answers
4 views
How to get HTML from iframe in angular
I want to get HTML code of header from iframe and put it to angular app. It's looks like:
iframe:
<div id="event-details-wrapper">
<div id="event-details">Header</div>
</div&...
0
votes
0answers
6 views
AngularJS reload service when network status Offline
I need you help.
I am trying to refresh a service in case there is no network. When it's OFFLINE, it works. But when it returns to ONLINE status, it loses the internal code when it returns a success ...
0
votes
0answers
7 views
How can I load an AngularJs app only after API response?
I have an Angular application. I need it to load ONLY after a succesful call to an API which returning data is needed for said app.
Is there a way to achieve this within Angular itself?
Ideally it ...
0
votes
0answers
5 views
angular-ui-grid - no gridTestUtils.spec.js
I'm using angular-ui-grid 4.0.2 (the latest version) in my project.
According to the documentation here:
http://ui-grid.info/docs/#/tutorial/403_end_to_end_testing.
There should be some sort of ...
0
votes
0answers
13 views
ng-style not updating the style attribute of div
http://plnkr.co/edit/PuP3f71kCjkqgjjMkgNS?p=preview
I have an ng-style="tghov.top" on my tags-modal however it's not translating into style="top:50!important" in the markup.
this.top = { "top" : "...
0
votes
1answer
8 views
Error: [$sce:itype] Attempted to trust a non-string value in a content requiring a string: Context: html, while display currency symbols
I am trying to display currency symbols using their unicodes in angularjs. I created an array of unicodes, and used ng-repeat for displaying each currency symbol. I also used Strict Contextual ...
0
votes
0answers
7 views
IdentityServer4 oidc w/ angular2 Guard Always False
I have identity successfully authenticating a user, it passes the user back to the main site which runs
<script src="https://cdnjs.cloudflare.com/ajax/libs/oidc-client/1.2.2/oidc-client.min.js">...
1
vote
1answer
17 views
AngularJS - API Call in a Loop - getting the max value of an array and setting a response
This is my first time here, and I am really lost on what to do.
So I have a loop where I am making a post request to an API. I need to send some questions and get their rates match back. After that, ...
0
votes
0answers
26 views
AngularJS not able to route to different page
I have a simple web project that has a phone list and each element in that list contains a phone detail information. If I clicked on a phone id, it should bring me to a page for that phone only, ...
0
votes
1answer
31 views
Angular div tag attribute with no equals
I apologize if this is a duplicate. I see in some people's code, they have something like this:
<div ui-grid="myUIGrid" ui-grid-selection ui-grid-resize-columns class="grid" />
What is ui-grid-...
0
votes
0answers
17 views
How to create a “back” button to an edit form for AngularJS Datatables using a form directive
I created a grid using AngularJS Datatables and added two more buttons "edit" and "delete" in the last column.
How does the grid/table is rendered?
HTML
<!-- Required CSS and JS -->
<link ...
1
vote
2answers
39 views
Complex regex in AngularJS controller
I am trying to add a regular expression in my AngularJS controller that validates the four following conditions in a text input box:
A) name (space) name, B) name,(comma) name, C) 123456789 (max of 9 ...
0
votes
0answers
14 views
Get Android soft keyboard 'Done' button appear in web SPA
I am writing a SPA Web Application using AngularJS (not using Ionic) and I have a form that looks like this.
<form ng-submit="submit(myData);">
<textarea name="myDataTextArea" id="...
0
votes
2answers
33 views
how to use Angular to call ajax and populate content from the return (after page has already rendered)
I am a backend API developer, new to AngularJS (version 1), which is what my current assignment is written in.
The page has ng-app="app" found in the <html> tag, and ng-controller="...
0
votes
1answer
19 views
PushService.initPush.then is not a function
I am trying to have a service return a promise, but keep getting PushService.initPush.then is not a function
Here is my service:
app.service('PushService', function($log, $q, $ionicPopup) {
return { ...
0
votes
2answers
22 views
Slow Angularjs page initialization - long delay before html loading
I'm running an angularjs app, and can't figure out why my page is loading slowly. The css and js files all load quickly, but there is a long delay between that and when the html loads, where the app ...
0
votes
1answer
30 views
AngularJS Directive - Multiple directives same name
Let's say I have multiple directives with the same name "parent-elem" (on each page I can have a different number of these directives - dynamic number)
<div ng-app="app">
<div parent-...
2
votes
1answer
31 views
ng-click not working when adding 'disabled' class in materializecss
I'm using AngularJS and MaterializeCSS framework in my project and for buttons it has a 'disabled' class to show them greyed out.
In angular adding or removing a class does not affect the ...
0
votes
1answer
19 views
Angular $http send CORS if-none-match
I meet a problem with CORS requests, where i need send if-none-match header. I want cache data which in response have ETag header in localStorage with ETag code and in next use cached data if server ...
-3
votes
0answers
29 views
Angular way to fetch checkbox value and the corresponding textbox value
I have a simple form where I have a textbox with meaningful names and corresponding to each I have a textbox.
I am able to get the list of checkbox and its ID by following a suggestion but I am not ...
1
vote
2answers
34 views
ng click inside li <a> element not working inside ng-repeat
In my html I have something like this :
<div class="list-table-wrapper embedded-medium">
<table class="list-table embedded-list-table">
<thead>...
0
votes
1answer
22 views
Sort an array of objects after $q.all resolves
Coding an app with AngularJs. I want to retrieve a list of all groups a user has joined.
I wrote the following:
controller('DashCtrl', function($scope, $q, $localStorage, AuthService, ...
0
votes
0answers
17 views
MEAN Stack 2.0 Angular-cli | [$ng new client] folder
I've initialized npm init and I've the following files
routes
views
client ( Created by $ng new client )
package.json
server.js
Now I have two services running 127.0.0.1:3000 : $node server.js and ...
0
votes
0answers
12 views
Cucumber focus md-list-item
I'm creating a website with Angular Material, and using Cucumber script for testing. Is it possible for Cucumber to focus on ?
I tried to give an id, but it seems Cucumber can't find the element.
0
votes
1answer
25 views
Angular inside of an Extjs Panel
Disclaimer: it's not my choice to put angular inside of an Extjs panel. I have certain business needs that require this, so spare me the, "you shouldn't do this" answers.
I'm writing a mobile webapp ...
0
votes
3answers
39 views
Angular js browser issues
i'm working in angular js project, when i change any line of code in a js file i should go back to the browser and clear the cache and the navigation data.
i'm wondering if there is a solution to ...
0
votes
1answer
14 views
Use angularjs module inside Angular 2
there is some angularjs modules which is not available yet for Angular 2 like iranian special calendar:
https://amirkabirdataminers.github.io/ADM-dateTimePicker/
i was simply including its files like ...
-1
votes
1answer
34 views
angular dynamic property name in nested ng-repeat
I'm wondering is there any way to add dynamically generated names in nested ng-repeat, for example:
<div ng-repeat="x in JSONfile">
<div ng-repeat="i in x.name">
<...
0
votes
3answers
41 views
Change bootstrap button colour and class on click or on hover/focus
I have four bootstrap buttons with btn-primary class set on them.
On hover or focus I would like to change the color of the button to show that on hover or focus is happening.
On clicking a button I ...
0
votes
1answer
31 views
How to retrieve image's url from Firebase's storage?
I have this code straight from the documentation of Firebase :
// Create a reference to the file we want to download
var user = firebase.auth().currentUser.uid;
var storageRef = firebase.storage()...
-7
votes
3answers
34 views
Imagine you have a movie collection, and you want to write code that returns your review for each one. Here are the movies and your reviews:
i am getting confused , how to do this task
Imagine you have a movie collection, and you want to write code that
returns your review for each one. Here are the movies and your
reviews:
"Toy ...
0
votes
0answers
21 views
Hard links in Ionic2/Angular 2 to JSON array products
Back in Ionic 1, it was possible make hard links to products using the url and also pages. Such as state ui-sref="tabs.list" and <a href="#/app/products/0">
This would be where 0 was the first ...
0
votes
1answer
32 views
How to perform url error for a form in angular js
I am trying to perform url error for my form and it is validating but the problem is, before I use get validate while i submit my form but when I changed to url validation, then the form is not ...
0
votes
1answer
39 views
Using Moment with Angular and TypeScript
I'm new to TypeScript and it's been a while since I've done any serious JavaScript development, so I may be missing something obvious.
I'm trying to use Moment in an Angular 1 app with TypeScript.
I'...
0
votes
3answers
45 views
Is there a way to assign a function and create ng-model dynamically?
Considering the below code, i am trying to construct ng-model dynamically with 2 different objects if it meets the uniqueAttribute condition.
<input type="text" class="form-control" ng-model="vm....
1
vote
1answer
15 views
How to ignore images in the textAngular editor
Facing issue with the textAngular editor when user copy and paste text.
(clip board contains text and image)
You can find library from here https://github.com/fraywing/textAngular.
0
votes
2answers
57 views
Array Filter return all when empty
I'm filtering an ng-repeat with an array. I would like the ng-repeat to show everything when the filterarray is empty.
HTML
<!DOCTYPE html>
<html ng-app='Test'>
<head>
<script ...
-1
votes
0answers
18 views
ui-select gets too slow -why ? Angular Js
This is my form I am populating the dropdowns using api but it has been too slow. When I click on first drop down and choose the value, it takes minutes to close it and it takes pretty much time to ...
1
vote
2answers
37 views
How to get file content and other details in AngularJS
How can I get file content while I click on submit button. I'm getting only first and second input.
Please refer to snippet:
!DOCTYPE html>
<html lang="en">
<script src="https://ajax....
0
votes
1answer
31 views
Simple Angular Directive within another Directive - how pass value to controller scope
Edit: I have added the details as well.
I could do with some help with passing the value selected in my directive to my controller $scope.
I have a very basic directive that I want to place within ...
0
votes
0answers
30 views
Angular JS: How to create a dynamic state such that it prevents writing 100s of states?
I am working in an Angular Js project where there are 100s of states.
Till now i am creating each state something like:
$stateProvider
.state('index', {
url: "/index",
templateUrl: "app/x....
0
votes
0answers
16 views
jsPDF not rendering html element with -v 1.2.61(IE)/ giving 110 error in adobe viewer with -v 1.3.2
I am facing a tricky problem with jsPDF. I have added two images(one is logo and another one is a highchart), html content as part of the document.
Here is the problem based on jsPDF version
When ...
0
votes
1answer
22 views
Use promises in nested maps with $q.all()
I am trying to figure out what data-structure of promises I can use in $q.all() function. I know that I can give it an array of promises and a map of promises, but can I give it an aribitrary depth ...
0
votes
2answers
22 views
Remove a File using separate function (Dropzone.js)
I have a cancel button on Click of which the uploaded file should be removed.
My HTML looks like this
<div reqdropzone="reqDropzoneConfig">
<form id="requisitionupload" class="dropzone dz-...
0
votes
1answer
38 views
Error with CORS - Angularjs $http.post
I am trying to do a $http.post, but this response give me this error.
XMLHttpRequest cannot load http://XXXXXXXXX:2222/server/api/v1/controllers. Response for preflight has invalid HTTP status ...
-2
votes
1answer
36 views
jQuery script not writing values in database Mysql
My database has a table called utilizatori and has id,username,nume_prenume,parola,locatie,sambata columns.
Through the form, I am trying to add new entries in database but when I submit the form, it ...
0
votes
0answers
19 views
How to define multiple ui-views in ui router in webpack
how to define multiple views in UI router using Webpack
My example.component.js file
import exampleHtml from './example.html';
import headerHtml from '../view/header.html';
let exampleComponent = {
...
1
vote
1answer
28 views
Angular ngRepeat error '_item_' in '_item_ in _collection_' should be an identifier '(_key_, _value_)' expression
I am trying below code
element.append('<label value="{{feat.Name}}">{{feat.Name}}</label><md-select ng-model="feat.Value"> <md-option><em>None</em></md-option&...
0
votes
0answers
10 views
Unable to make work angular-google-analytics in Ionic. Aborted execution due to exception
I am trying to add google analytics to an Ionic project. I am trying with angular-google-analytics by @jujule
For testing purpose I just created a sidemenu project with Ionic CLI:
ionic start ...
0
votes
2answers
30 views
angular equivalent to object prototype
Now i wish to create an object that you can instanciate at any time but that can still use angular services:
Take for instance the following object:
var myObject = function (variableOne, variableTwo)...