Skip to main content

All Questions

0 votes
2 answers
88 views

How to make directive use the controller specified in directive attribute?

So I have a directive: <directive data="user" templateUrl="./user.html" controller="UserController"></directive> I want that directive to use the controller ...
stealz's user avatar
  • 564
0 votes
1 answer
54 views

Passing service call from directive to controller in angularJS

I have a directive, who receive a file to upload in httpPostFactory service and php code <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.3/angular.min.js"></script> ...
Andres CC's user avatar
0 votes
1 answer
161 views

Accessing the checkbox checked from the controller in angularjs

There are a couple of checkboxes and a button. When i press the button need to know which all checkboxes are selected in the controller. I have a controller Mcontroller where i have $scope....
Deepak's user avatar
  • 1
0 votes
2 answers
1k views

custom directive to mask sensitive data while keeping the original value

Using: angularjs 1.4. I need to write a directive that hides sensitive data (replacing the middle section with asterisk '*') for ngModel and ngBind, but I'd also need to keep the original, unmasked ...
Tarek's user avatar
  • 3,158
0 votes
0 answers
533 views

AngularJS unable to perform file upload [duplicate]

I am doing a file upload in angularjs. I am unable to get the file object content before sending to my back-end. XHR, headers: XHR-Header I have no idea why because I can get the content in my logs. ...
user avatar
-1 votes
1 answer
230 views

AngularJS Unable to display upload file logs [duplicate]

I am trying to create a file upload function using angularjs which will just accept the file and send it to the server side (Django). To ensure the file upload function is working fine, I've placed ...
user3774763's user avatar
0 votes
2 answers
811 views

AngularJS file upload Error: $injector:unpr Unknown Provider

I am trying to do a file upload using angularjs. But I am getting this error for the past few days and I am unable to resolve: angular.js:13920 Error: [$injector:unpr] http://errors.angularjs.org/1....
user3774763's user avatar
0 votes
1 answer
127 views

AngularJS component binding a function

Let's say, we were trying to delete an item from the list using the web api.We had created a child component named as remove-item using parameters - item and onRemove.On click of a item,we would like ...
ColleenF123456's user avatar
3 votes
2 answers
974 views

A controller with this name is not registered -- Error: $controller:ctrlreg

Property Binding | AngularJS We were trying to use property binding in AngularJS Directives,but the problem raised the error stated as The controller with the name counterController is not ...
ColleenF123456's user avatar
0 votes
0 answers
59 views

How to Access directive data from a controller from a seperate file

Access directive data from a controller from a separate file. Wanted to access the data from SheetJSImportDirective which is the $scope.$apply function that contains $scope.opts.data. The $scope....
user avatar
1 vote
3 answers
175 views

$scope is not defined in script 2

Unable to fetch ng-change selected value from the dropdown. I'm trying to pass the selected value from the dropdown to API call in script 2 as below, but unable to do so. In the chrome developer tools ...
user11130182's user avatar
0 votes
2 answers
119 views

use a directive with public scope as a isolated scope

Some time ago I have written a custom directive and it is now used at many places inside the code (not possible to change it anymore). It has a public scope and that was fine until today. Now I want ...
Elio's user avatar
  • 478
0 votes
1 answer
28 views

angularJS validate input field with the help of $emit and $on

I am creating a web app in which I want to validate some of my input fields so I am using $emit and $on to keep it short I created a directive which looks like this angular.module('myapp')....
user avatar
1 vote
2 answers
82 views

set focus to textbox from angularJS controller

I am creating a web app in which I am using angularJS, I have a jqueryui datepicker , which looks like this <input type="text" ng-model="rc.reg.mddoj" ng-blur="rc.dojChange()" title="Date Of ...
user avatar
0 votes
1 answer
44 views

Add ngModel directive to dynamic element in Javascript

Is there a way to use javascript to apply the ng-model directive to a created element? In the code below, I want the new select element to be bound using ng-model to a scoped variable inside the ...
monkeyWithAMachinegun's user avatar

15 30 50 per page
1
2 3 4 5
���
21