Category "angularjs"

UI-Grid sync scroll bar between two grids

I am using ui-grid (ui-grid.info) with angularjs (angularjs.org) and i am trying to sync the scroll bar of two grid. If the user move the scroll bar on one grid

Saving Data from form to database using AngularJS and php

I'm pretty new in angular. i created a modal window to user share story and after that show it in body: html <button class="btn btn-primary new-story" n

Why is AngularJS considered MV*

I have worked with MVC on the back-end (Rails), and am currently working with MVC(MV*) on the front-end (Angular). I have seen Angular as considered an MV* pat

How to know if my radio button is checked? AngularJS

guys I did a code for knowing if my checkbox is checked and works fine: HTML: <div ng-app> <div ng-controller="UserController"> <ta

AngularJS: How to jasmine test callback function in directive?

I have a very simple directive which creates a HighCharts graph. I have only included the most important for this question: angular.module('myModule').directiv

All 3 ways of moving to new page on click of button in the ionic navbar dont work

Ideally, all 3 methods ought to work. This codepen below shows all 3 methods well. Correct and working CodePen Demo app Currently, neither of the 3 methods

adding a custom icon to a tinyMCE button

I'm trying to add a Font-Awsome icon to a button I added to tinyMCE thus: ed.addButton('youtube', { title: 'Add Video' , icon: 'icon-youtube',

angular - catch backspace press

I am trying to catch backspace press via ngKeypress, ngKeydown and ngKeyup,follwing How can I detect keydown or keypress question. Here is my HTML: <input

angularjs custom directive not working

I added my custom attribute to my application like this 'use strict'; myApp.directive('orientable', function () { return { restrict: 'A', link: fun

Multiple config blocks in angular module

I need to resolve some dependencies (fetching data for my services, etc.) in my app before it loads. I would like to separate these out, so that I have one con

How to check if a file has downloaded successfully?

My page has a link that on clicking will download a file. I just need to check if the file has been downloaded and of the correct extension.

Google Place Autocomplete dropdown falling "below" screen

I've been writing AngularJS web app and google places autocomplete autogenerated dropdown code causes it to sometimes be out of DOM. HTML code defining input t

Find missing day from array of dates javascript

I am getting an array of day dates from an API: 0:{date: "2016-11-17T00:00:00",…} 1:{date: "2016-11-18T00:00:00",…} 2:{date: "2016-11-19T00:00:00

jasmine: Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL

I have an angular service called requestNotificationChannel: app.factory("requestNotificationChannel", function($rootScope) { var _DELETE_MESSAGE_ = "_DEL

Angular Textbox Undefined

So I'm trying to programmatically edit a textbox in a webpage through chromes developer console. This is the code of the textbox. <input formcontrolname="use

Angular $scope variable not updating

In my angular, I define a scope variable $scope.letter_content. When the view is loaded, I load string from my database and set it to $scope.letter_content. The

how to transclude components?

I'm using angular-gridster in a project i'm working on. We are building the project mainly with angular 1.5 components. My view looks like this: <qn-grid>

How to find a keyword in a visual studio project

I am looking at an old project one of my colleagues wrote in AngularJS in Visual Studio and as we all know, it's pretty difficult to understand code when you're

how to show a confirmation dialog box in toastr

I have the below code for a delete button in the controller, $scope.removes = function (scope) { toastr.success("Delete all?","<br /><br />

Protractor (WebDriverJS) cannot switchTo window. nameOrHandle is not defined

I have gone around this as many ways as I can think, and still can't get this to work. I am trying to switch to a popUp as a way to automate a login. (Protract