Category "angularjs"

AngularJS - difference between pristine/dirty and touched/untouched

AngularJS Developer Guide - Forms lists many styles and directives regarding forms and fields. For each one, a CSS class: ng-valid ng-invalid ng-pristine ng-dir

angular animated sliding panel - shows for second when view loaded

i'm trying to build animated vertical panel which suppose to be hidden and when user clicks button -panel should slide from the right. here is my code: HTML

npm ERR! git dep preparation failed when trying to install package.json

I'm trying to install package.json file using the command npm install, but I'm getting the following error. npm ERR! git dep preparation failed npm ERR! command

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