Category "angularjs"

Window.open isn't working for multiple links in Google Chrome

I tested this in FF, work fine but not in Chrome. For single link, I found a hack which is using redirect, but I'm still looking for ways to open multiple links

Error: Source path does not exist: resources\android\icon\drawable-hdpi-icon.png

I'm trying to get an APK file from a Ionic project with the "cordova build --release android" command on a Mac and it doesn't work as I get this error "Err

Having problems with testing angular app / ERROR: 'DEPRECATION: describe with no children (describe() or it())

After runned my test with this artist-detail.spec.ts import { HttpClientModule } from '@angular/common/http'; import { ComponentFixture, TestBed } from '@angula

How to turn off or handle camelCasing in JSON response ASP.NET Core?

I'm running through a WintellectNOW course on ASP.NET Core/Web API/Angular 2. I have the API portion implemented, but for whatever reason, the JSON that is bein

How to see what states are configured in AngularJS / UI-Router?

Is there a way to see all of the states that have been set on $stateProvider? In this case, I would like my state assignments to be distributed across many fil

Why is Angular called a single-page application?

One of the most common terms associated with Angular(JS) is SPA. Why is Angular(JS) called a single-page application? Even if the URL changes in an Angular(JS)

Video.js : Unable to view fullscreen video

I'm developing an application using Ionic and in that I'm allowing user to upload videos. So for playing videos I have integrated Video.js library. But when I

$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;