Category "angularjs"

$scope value not updating in view when $scope value is changed in controller

I have a function which uses papaparse.js to immediately get the content of a .csv file selected via a file input as a JSON object list, I then pass this list t

Can we write IF statement without else in javascript

I wrote some code to create an simple todo app in angular js. I have the following function code to remove the tasks from the list. Javascript code $scope.del

Data Type Jasmine

I'm a beginner in angular test with jasmine and i need to test data type(e.g. String, int, etc.) This is my controller, my data is instantiated to null and la

How to select option in drop down protractorjs e2e tests

I am trying to select an option from a drop down for the angular e2e tests using protractor. Here is the code snippet of the select option: <select id="loc

Access parent element(body) in directive link function

Given a HTML structure similar to this: <body> <div id="one" my-directive></div> <div> <div id="two" my-directive>

angularjs calling modal dialog from directive

I've created a directive to open a modal dialog. Here's the code: [EDIT] JSFIDDLE HERE: http://jsfiddle.net/graphicsxp/fcQZk/8/ PROBLEM: THE CLOSE BUTTON DOE

How to close a dropdown on a mousedown

Frontend noob here, please be nice. I have a dropdown menu using ui.bootstrap.dropdown. The users of my website are used to copy-paste stuff from this dropdown.

How to remove element from json object in angularjs

I am using angularjs to integrate my apis. I have a grid table and DELETE button in each row. my controller have following code: $scope.singleAppDetails = {}

console.log not working inside angular controller

Hi i have been trying to get into angular.j. I have tried the following code. But the console.log() not seems to be working. Anything am missing?? like angular

Change AngularJS input[date] programmatically

I'm trying to assing an input[date] control an initial value in the controller. From AngularJS input[date] documentation, The model must always be a Date objec

Angular Bootstrap Tab Icons

Is there way way to use Font Awesome icons inside Angular Bootstrap Tab Headers? http://valor-software.com/ngx-bootstrap/#/tabs I am only seeing a string optio

remove a block HTML with javascript

I use owl-carousel in a project angularjs I try to reinit owl-carousel after data-change with $(element).data('owlCarousel').destroy(); and remove this block:

FabricJS - remove Stroke from image intended for saving

I have the following code for rounding corners of an image: $scope.startRoundedCorners = function(e) { if ($rootScope.activePanel === 'round') return;

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',