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
8 views
Ontimeupdate not working properly in angulat js
I have declared a function test in controller and called the function inside video ontimeupdate.
<video id="video_play" width="900" ontimeupdate="test($event)" ...
0
votes
0answers
3 views
$mdDialog stacked/nested dialogs, is it possible?
I want to open one $mdDialog on top of the other. If possible, have unlimited overlapping dialogs.
Any ideas?
0
votes
0answers
4 views
Angular.js - How to make limitTo dynamic and persistant inside a nested ng-repeat with real time socket.io data updates
So I have an app that is updating data in real time using socket.io and displaying it with Angular JS.
I have it displaying data (comments) in multiple ng-repeats which are using ‘track by’ to ...
0
votes
0answers
4 views
Protractor Test Result variations
I am working with protractor in some projects and when i run projects there are some differences in the messages at the end of the successful test run. In one test i have written the tests normally ...
0
votes
0answers
2 views
OS X Keychain runs all saved email addresses through an AngularJS form with custom email validation directive
We have a simple user sign up page that validates the entered email addresses onBlur.
OS X's Keychain will suggest an address while filling up the field. When any address is selected, a random number ...
4
votes
1answer
29 views
Angular-ui: Is any modal opened?
I'm want to launch a code if any modal opens. Commonly I'm want something like:
$scope.$watch(function () {
return $modal.isOpenState;
}, function (val) {
//my ...
1
vote
3answers
22 views
npm install: install Couldn't read dependencies
I have started to learn Angular JS. I am going through this, that is building simple phonecat app
I am following the steps. Node.js downloaded.
Trying to execute this command: npm install
Error ...
1
vote
0answers
16 views
How to pass dynamic param in angular $resource
I want to pass dynamic value of default param in $resource. Please look into the Plunker. Here when I had passed default param in factory as
app.factory('myFactory', ["$resource", function($resource) ...
4
votes
3answers
27 views
ng-if or ng-checked matching from comma separated value
I have following HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-ngModel-getter-setter-production</title>
<script ...
1
vote
0answers
14 views
Unable to play video in angular js
I am trying to create a video player using angular js. I am not able to play the video. Below is what i tried.
videoPlayer.factory('controloptions',function()
{
var controloptions={};
...
0
votes
0answers
19 views
AngularJS - ngClass causing error: [$rootScope:infdig]
I'm working on "Edit profile" form. What I want to do is to let user know when there is some mistake in the form.
<div class="form-group" ng-class="{'has-error':
!ctrl.checkValidData('email', ...
2
votes
1answer
13 views
ngToast message is displaying behind the modal popup
I am using the ngToast to display the success messages in angularJs, but success message is displaying behind the modal popup.
How can I display the ngToast message on top of the Modal Popup?
2
votes
1answer
27 views
angularjs default select always changes
with angularjs select tab and ng-options,I cannot get the right default selecedValue after I selected one .
html
<select ng-model="selectedStyle" ng-options="style as style.name for style in ...
1
vote
0answers
7 views
configuring rails application to make ui router work
I am trying to implement ui-routing in my rails application but it is not able to find the page to which i want to route to.
the tree structure in rails that i followed is
app
assets
javascripts
...
-3
votes
0answers
30 views
How to calculate real time interest on typing in textbox
I have three textboxes. On focus of third textbox, i have to check the required validation of first and second textbox and when they get validated then when i am going to type on third textbox, i have ...
-1
votes
0answers
5 views
my ionic hybrid apps become white when i drag from extreame left in ipad
i had made a apps using ionic/angularjs it work absolutely fine in android device and Ios but when i drag it form extreame left of my Ios Ipad or Iphone it screen become white how to solve it
0
votes
1answer
11 views
I am uploading the image file in Angular Js to call the java api but my form data is not hitting the api
controller:
$scope.fileToUpload = function(input) {
if (input.files && input.files[0]) {
CommonService.uploadContactImage.upload({
fileName : input.files[0].name
...
0
votes
3answers
24 views
How to handle JSON data in angularJs?
In my Controller call function like
Auth.register(credentials, config).then(function(registeredUser) {
console.log(registeredUser);
}, function(error) {
// Registration ...
0
votes
0answers
8 views
How to minify the files in angular-ui-load using gulp?
I am using angular-ui-router and resolving using the uiLoad directive. Everything goes into my states.js file like this,
.state("type", {
url: "/type",
...
0
votes
0answers
14 views
ng-init is not working when I use ngDialog
I have two pages, signinAndsignup.ejs and updateProfile.ejs. I have used same controller loginController for two pages like this:
ng-controller="loginController"
I have used ngDialog to get a dialog ...
0
votes
1answer
31 views
How to add class after ng-click to parent element in dynamically?
I have multiple video player in single page. If i use jQuery it is very easy find parent element dynamically. But in Angularjs its not happening.
<div class="item-media video-item" ...
1
vote
1answer
13 views
md-select on hover open select options
Is it possible to expand md-select on mouse hover?
For example, I want this State select to expand on mouse hover
http://codepen.io/anon/pen/vOmQgj
<md-select placeholder="State" ...
0
votes
1answer
18 views
Aungular UI modal not passing ng-model as expected
I have a simple page that is opening a UI Modal on an ng-click
<a class="btn btn-primary" ng-click="vm.open()">Take The Pledge</a>
The 'Controller' for that particular page
vm.open = ...
0
votes
0answers
7 views
Run gulp serve error browser-sync
-----------------------------------
Local: http://localhost:3000/
External: http://10.0.2.15:3000/
-----------------------------------
UI: http://localhost:3001
UI External: ...
0
votes
2answers
19 views
Angularjs dependency injection parameter
What is the difference of the below code
.factory('Service', ['$log', function($log) {}]);
.factory('Service', function($log) {});
both are working fine in my app.
0
votes
1answer
28 views
How to use $watch stable way
I have following code
front_controller
$scope.month=monthNames[$scope.currentmonthnumber];
monthyeartransfer.setvalue($scope.month);
$scope.monthchange = function(m) {
$scope.month = m;
...
1
vote
1answer
11 views
Serve arbitrary html in angular data bind
I'm making a blog, I have the skeleton in place I can serve up pages etc...
My question is in my main index.html page I have something like
<html ng-app="BlogApp">
...
<div ...
0
votes
0answers
41 views
AngularJS javascript function gets stuck inside an else statement
I have this code whereby i want to check if code input data is the same in the local db. This code works fine until it gets to where i have marked as code hangs or stops here. Once the code gets to ...
0
votes
0answers
21 views
Routing problems with AngularJS and Symfony
I'm trying to work with symfony2 and AngularJs together, but I cant,
I've conflicts with the rounting
Angular does not recognize the Angular symbols in twig templates.
This is my app.js that is ...
0
votes
0answers
16 views
How google images dropdown works
Im working on the project where I need to open an image in the dropdown window, moving the content below the image down, basically like the Google images does when you click on an image (dark colored ...
0
votes
1answer
8 views
Does an existing gruntfile need to be edited? What is the common workflow?
For an existing app, is there a proper protocol for specifying bower packages such that they're handled correctly when running "grunt build"? Does an existing gruntfile need to be edited? What is ...
0
votes
1answer
7 views
Interact with chrome bookmarks outside of extensions
How would I interact with the Chrome Bookmarks API outside of an extension? I have tried to get this to work and can't get the call to work outside of an extension. Is there a library that can help ...
2
votes
1answer
23 views
Making services asynchronous in AngularJS
Forgive my ignorance, I'm new to Angular and JavaScript.
I've read that promises make it more elegant to call asynchronous services, but I've not been able to find any documentation on how to make my ...
-1
votes
0answers
13 views
Applied class vanishes on ui-sref-active-eq after changing to a child or nested state
I have 2 buttons
<a class="medium-6 columns menu-item button" ui-sref-active-eq="button-selected" ui-sref="main">
<a class="medium-6 columns menu-item button" ...
0
votes
1answer
22 views
how can I call a function in a directive from the controller?
i have a function that sits in a directive and i want to be able to call it from the controller. how can i do that?
here is my directive:
angular.module('almApp')
.directive('contactForm', ...
0
votes
0answers
16 views
npm start: “ReferenceError: angular is not defined”
I am following the tutorial at https://thinkster.io/mean-stack-tutorial/ and I get the titular error when I run 'npm start', 'node bin/www', or 'node angApp.js'
I ran the following commands (in ...
0
votes
0answers
7 views
how can i bind directive or how can i manipulate view template?
Country List i m populating from database,
state and region are populated after i select country.
can i change html label with scope variable? or if i use if condition for templates to change how can ...
0
votes
0answers
10 views
MathJax.Hub.getAllJax returns empty array
My html:
<span id="questiondisplay">{{question_display}}</span>
Javascript code:
var math = MathJax.Hub.getAllJax("questiondisplay")
On doing this math is an empty array []
However, on ...
0
votes
0answers
13 views
Flask and Angular Ui-Router
I am trying to setup angular ui-router with Flask as the server-side language. I am having trouble loading up partials in my ui-view. Here is my directory structure
and my routes look like this:
...
1
vote
1answer
15 views
Can onbeforeunload event be watch by $watch in angular js?
I am a newbie of angularjs and now I am stack on catching event of onbeforeunload event. I would like to show to some response to user when they leave the page. And I would like to watch ...
0
votes
2answers
24 views
angular how to do a form submittion with ajax
Hello I'm new to angular and I have being trying to submit a form and check in my mysql database if the user is present. all of my code work because when I put the json directly in my php/codeigniter ...
1
vote
0answers
20 views
Creating Angularjs directive instead of jQuery heavy function
I have the following javascript function made mostly from jquery that I run as soon as the page loads. I am trying to turn this into an angularjs directive but I'm having trouble figuring out how to ...
1
vote
0answers
19 views
AngularJS Material using $mdDialog in a directive linking function
I am trying to put an Angular Material dialog in a directive's linking function. Conceptually, I'm not seeing why this would not be possible. As per the docs, the $mdDialog.show is on a scope and ...
0
votes
1answer
14 views
Missing component for Angular Material?
All Angular Materials components seem to be included in the code and the "hello world" example itself is copied straight from the website.
But for some reason, when I try to load the file and test it ...
0
votes
1answer
7 views
How to use annotorious with angular
I'm trying to integrate annotorious with angular.
So far, 2 directives for tag and attribute cases, also a service to access the anno object.
Are there any interesting ideas how to integrate them.
...
0
votes
1answer
22 views
AngularJS - Losing controller scope within method
Angular noob here. I'm trying to create a form as a directive. ng-submit calls a controller action, but, within that method, I don't have access to the controllers scope, ie. $scope.
Here's the part ...
0
votes
2answers
6 views
RESTAngular with factory method is not working
Following your tips in ,
Best practice of RestAngular ,
I am trying to follow your suggestions (Restangular Service - Factory & ** exampleService** ) and its not working .
The following Plnkr ...
1
vote
1answer
15 views
How to define optional parameter using UI-Router without trailing slash as well?
I was working on migration of my Angularjs code from ng-router to UI-Router. In my ng-router I have optional parameters however I realized that same easy way to support optional parameter is not ...
1
vote
2answers
14 views
AngularJS routing Issues $injector:modulerr
Ok so I am fairly new at AngularJS and just running through a demo, but I am having issues with the routing side of things and can't figure it out. I thought you guys would know instantly that I have ...
1
vote
1answer
18 views
How to access selected option in Angular.js controller
I have two selects, the contents of second must depends on selected value at first select. E.g. I want to load list of companies (to 2nd <select>) which providing particular service (selected in ...