Tagged Questions
AngularJS 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 apps are also frequently known as Single-Page Applications.
0
votes
0answers
4 views
CSS Matrix3D transform on hover
Currently, I'm trying to achieve the same effect as the card elements displayed in the following url: https://moteurdereussites.withgoogle.com/
As you can see, some cards looks like it is 'pushed ...
0
votes
0answers
9 views
Get the time my page started running angularjs
I am making an app displaying the current system time but I want to get the time my page started running so I can calculate and display the time that my page is up and running. I am using angularjs ...
1
vote
2answers
22 views
Use function of a controller in another angularjs
Few days I've been trying to solve it using a function of a controller in another.
I have to get is that when you press a button click go away to another part of the application but with an open ...
1
vote
1answer
12 views
Data from PHP to AngularJS not matching
I have a PHP file that is used to send emails, while my Angular controller sends the data to be sent in the emails. I am trying to do error handling on my Angular callBacks in the events when the ...
0
votes
0answers
3 views
WCF Error 400 (Bad request) when trying to do a POST request in AngularJS
I am using AngularJS and I am trying to do REST CRUD operations with ngresources to a WCF service, but every time I try to do a POST call it gives 400 bad request error. I need to send a json object ...
0
votes
0answers
4 views
Firefox encoding not supported gulp server
I'm building an angular application and developing it on a gulp server. Everything works fine, I've made a preloading module that loads a couple of mp3 files. In google chrome not a single problem ...
0
votes
1answer
26 views
Dynamic creation of a block
Dynamic creation of a block which has different set of data and their will be 3 in a row and once it is done it should create a new block which should be brand new column with the same number of ...
-1
votes
1answer
18 views
how to call to different controller on same page using angulajs
I have two controller file of anglularjs and two different service file for each.how i can call two different controller on same html page so i can display my user and data of user on same page.and ...
0
votes
1answer
33 views
Call Angularjs Controller from Jquery
I am working on a project where I have two Controller
register and Login.
how do I call Login Controller n success function of Registration.
This is my Controller
.controller('LoginCtrl', ...
0
votes
0answers
2 views
how to uplaod multiple images from i pad gallery using ionic and cordova plugin?
i want to upload multiple images in i pad using ionic and cordovaImagePicker plugin.
i am getting an error : Uncaught Error: [$injector:modulerr] Failed to instantiate module starter due to:
Error: ...
0
votes
1answer
15 views
ng-pattern not working with text-angular div
I have used text-angular for getting input from user. The below code does not validate the input
<div text-angular ng-pattern="/^[a-zA-Z0-9\-\s]+$/" name="description" ng-minlength="100" ...
0
votes
0answers
14 views
No 'Access-Control-Allow-Origin' header is present on the requested resource error (angularjs + rest)
Using angularjs to write data in another machine's file failed:
No 'Access-Control-Allow-Origin' header is present on the requested resource
Setting:
anjular js client:
$http.post(url, ...
1
vote
1answer
11 views
Inject Upgraded Service Into Component
I have a service called Example that I used in my angular 1 application. It has angular 1 dependencies, $resource, $http, $q and I would like to use it in my angular 2 service.
However below is how ...
1
vote
1answer
8 views
How to add expression for AngularJS ui-select in ui-select-choices repeat attribute
Before using ui-select I used simple <select> tag and I had there
ng-options="item as (item.name || 'custom name') | htmlToPlainText for item in items"
Now I started to use ui-select and I ...
0
votes
0answers
7 views
Automatically Resizing Angular-nvd3 chart inside of Angular Material Grid
I am trying to get a responsive nvd3 chart inside of an angular material grid.
It seems to be working ok after I resize the window but does not go to the correct size at the initial load.
My approach ...
1
vote
2answers
21 views
How do I inject an attribute into a return collection - Angularjs
I have an angular app that returns a collection. I would like to inject a scope variable into each element in the collection. How would I do this? A foreach perhaps when I return the collection?
I ...
0
votes
0answers
19 views
Anchor tag not working in safari mobile
I have anchor tags which are working perfectly fine in safari desktop view, when I switch to mobile view for same the actor tags are not working.
<div class="panel-body animate-show" ...
0
votes
0answers
12 views
Add Multiple templates in one cell in kendo UI
I am new in kendo-ui.I am integrating kendo-ui with angularjs.I want to show the two buttons in single cell. I dont know how can i achieve this.
Here is my code:
<div id="mygrid" kendo-grid ...
0
votes
0answers
33 views
SyntaxError: Unexpected token u Angularjs
Building a Todo App that adds tasks and deletes them aswell and getting the above error.Below is my html and my angular code.I have checked other blogs and still no valid answer.
<!doctype ...
0
votes
0answers
24 views
why navigation test failed in angular?
I am navigate from one page to another on button click using angular ?.I am able to navigate .But I am trying to test that scenario .I am getting a error .here is my code
...
0
votes
1answer
25 views
Sending big string over JSON post to server with ASP.NET 5 - CORS error
I'm having the problem with sending a file as a byte array json string to the server. When the file is relatively small: up to 2MB or so, then it works fine, but if the file is like 4MB then the ...
0
votes
2answers
32 views
Changing button style on POST AngularJS
I have a contact form, and on submit, it sends a POST to a backend file:
<div class="field text-center">
<button type="submit" class="submit form-btn" ...
1
vote
1answer
18 views
Angular $compile in link function gives an error “RangeError: Maximum call stack size exceeded”
I am trying to add a ng-class attribute to a custom directive from the link function.But when using compile function after adding the ng-class attribute, It gives an error like "RangeError: Maximum ...
2
votes
2answers
28 views
Angular JS How to invoke the directive scope functions from the directive template content events
I want to access the events like onChange or onKeypress of the input control, which I kept in the directive.I am able to access the variables which i declared in the "directive / controller / scope" ...
0
votes
4answers
21 views
Angular ng-repeat date formatting
I am using angular ng-repeat to display an array of data including some columns which are dates but what is the best way to format the dates so they are presentable to the user? Thank you in advance. ...
0
votes
2answers
20 views
Pass service values to template
I need to pass values of a service I created to a button template and insert that into my index.html. I wanted to have a reusable code to insert CRUD buttons.
Currently when I try to insert the ...
0
votes
0answers
8 views
Lazy loading modules/files for multipage angularjs?
I am tasked with a multi-page website that uses angularjs as a front-end framework. Currently, I used browserify with npm to manage the module dependencies, which generate a bundled file for the whole ...
0
votes
2answers
21 views
Cannot read property 'href' of undefined error in angular?
I am trying to test my router functionality .I am getting this error
Cannot read property 'href' of undefined
..could you please tell me how i will remove this error
here is my code
...
0
votes
1answer
12 views
optimal way to highlight selected li in Angularjs
I am using Angularjs 1.4.7 version. I have a <ul><li>..</li>....</ul> and want to apply a background-color property to the selected li. The code is as below:
<ul ...
0
votes
0answers
16 views
Sometimes ng-click don't work in Ionic
I'm new IONIC & AngularJS. Currently, working on an app & stuck at a point. Don't how to resolve the issue.
I've a login form. After user login to the app, he/she will land at HOME page. In ...
0
votes
1answer
16 views
Angularjs view variable value is not changing
Hello, I am new to Angularjs. Below is my code :
.html file :
<!DOCTYPE html>
<html ng-app="showcase.angularWay.dataChange">
<head>
<script ...
0
votes
1answer
22 views
Angularjs doesn't trigger event handled by addEventListener
I'm trying to trigger event on a element with mousedown event handled by addEventListener call but I don't why it doesn't work.
I tried to use angular.element(el).triggerHandler('click'); but it only ...
0
votes
1answer
12 views
Display table rows depending on child nodes coming from backend
I have a little challenge with a table
Here is the table
<table>
<thead>
<th>Name</th>
<th ng-repeat="value in drilldownReport.columns">
...
0
votes
1answer
20 views
Best pratice to learn angular source code?
I am working on AngularJs for months. It is a powerful framework with tons of sophisticated concepts. In order to master AngularJs, I want to learn the source code of Angular. However, I do not have ...
0
votes
1answer
22 views
Angualr JS directives scope variable relationship
I am trying to understand the Angualr JS directives. But i am confused with the scopes and relation ship between the parent controller and directives. For example:
1) I inserted the "hello-world" ...
1
vote
1answer
18 views
show modal when checkbox is check or uncheck
Click here to view my code:
http://plnkr.co/edit/Z7QI9Ec53zfkDylnseAc?p=preview
HTML:
<ul>
<li ng-repeat="album in albums">
<input type="checkbox" ng-model="album.selected" ...
0
votes
0answers
7 views
error using cloud9, meteor and angular, error?
I try use meteor, angular on a cloud9 www.c9.io, and I run the tutorial https://www.meteor.com/tutorials/angular/creating-an-app , when I launch de app nothing happen. the code is the same of the ...
1
vote
0answers
5 views
Ment.io: can it show description for user typed when mouse over the user name?
I wonder whether it is possible to show description for user filled by ment io when I mouse hover over the user name.
http://jeff-collins.github.io/ment.io
Step 1. @iqbal then ment.io will show ...
0
votes
1answer
25 views
What's the best way to inject one service into another in angular 2 (Beta)?
I know how to inject a service into a component (via @Component), but how can I use DI to pass around services outside of components?
In other words, I don't want to do this:
export class MyFirstSvc ...
0
votes
1answer
23 views
Angular redirect to current page
I have a modal where I am using a custom directive which closes the modal after submit. This works. Next I'm wondering how I can then refresh the current page the user is on in angular. I've tried ...
0
votes
2answers
33 views
AngularJS textarea counter
I've created a contact form with a textarea in it, and I want to display the minimum character count needed to make the form valid:
<div class="field form-group">
<label ...
0
votes
0answers
16 views
How do i know which file is causing Error
I am getting the following Error in Angular APP how do i find out which Script or file is causing the Error. using JQuery 2.1
ReferenceError: $scope is not defined
at HTMLDocument.eval (eval at ...
0
votes
0answers
6 views
How do i access ngDialog data property in view
I am using ngDialog.
I am setting its data property value.
Problem: I am not sure how can i access data value in my view.
This is how i am setting ngDialog.openConfirm. myName have value.
...
0
votes
0answers
5 views
How to align the angular sidenav in md-toolbar? And the content below it
Here is a codepen link
I'm trying to make an Angular sidenav, that must be aligned in a row with some form (which contains search box) which are in a md-toolbar and below of toolbar.
I am ...
0
votes
1answer
28 views
AngularJS dynamically load template and js file
I want to dynamically add menu JavaScript file and html to content.html, but it can't do.
I created simple example
demo
I try move "<script src="menu.js"></script>" to menu.html
0
votes
0answers
5 views
Templarian contextMenu Drop down menu class does not show
I am using templarian contextMenu found https://github.com/Templarian/ui.bootstrap.contextMenu. I am also using ui-bootstrap and bootstrap 3.2.
I am just trying to run the example on the ReadMe of ...
0
votes
0answers
3 views
heroku changes input tags
After uploading my angular app to Heroku, I notice the type="text" is removed from all input tags.
For example, in my code I have:
<input type="text" ng-show="total > -1" id="companyName" ...
0
votes
1answer
10 views
404 Image not found on ng-repeat in ionic / angular for first image only
So I am using the following code to output a few images on my html page
<div ng-repeat="Object in Objects"><img src="{{Object.Image}}"></div>
This works great and loops out all my ...
0
votes
1answer
13 views
Unable to access scope using fat arrow
I'm probably missing something very basic regarding scoping.
Can anyone please explain what is going on and how to properly access the object ngModelController from the outer scope of my function?
...
0
votes
0answers
4 views
google not crawling a SPA as expected
I'm using prerender.io, it's working perfectly with other crawlers such as Facebook.
But when I ask google to fetch and render my links on the webmaster tools it seems to not fetch correctly even ...