All Questions
Tagged with angularjs-directive angularjs-service
190 questions
0
votes
0
answers
13
views
AngularJS: Unable to Display Found Items in Search Functionality
I'm working on an AngularJS project where I have implemented a search functionality to filter menu items based on a user-entered search term. However, I'm encountering an issue where the found items ...
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.
...
-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 ...
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....
0
votes
2
answers
297
views
How to activate a spinner directive from a service
How does one use an AngularJS directive inside an AngularJS service?
In my AngularJS 1.5 application, I have a directive that displays a spinner in the center of the view. I would like to be able to ...
0
votes
1
answer
153
views
AngularJS is it possible to use service that was injected via html scope directly?
I have this directive:
app.directive("saveButton", ($rootScope, ConfirmationModal) => {
return {
templateUrl: "/structure/header/components/save-button/save-button.html",
scope: true,
...
1
vote
2
answers
205
views
AngularJS - view not updated when directive changes data in service
I'm using a directive to interact with a service and am encountering some trouble with the view showing the latest data.
I setup the following example. You can see that when a controller interacts ...
0
votes
1
answer
516
views
Display custom error page in angular js
I can try to make custom error page in angular js
means that when 404 error occurred then display 404.html page
and when 500 error occurred then display 500.html page like so on
so please tell me how ...
0
votes
3
answers
61
views
Re-Usable Angularjs Code
I have scope function ClickA and ClickB in my controller CtrlA, I want to re-use ClickA and ClickB with there containing scope variables "a" and "b" in almost every other controllers, I mean, I simply ...
1
vote
3
answers
472
views
How to expose directive methods using a service
How to expose directive methods without using $broadcast or '=' between modules?
Using $broadcast (events) if there are multiple directives all will be notified. It cannot return value too.
Exposing ...
0
votes
1
answer
30
views
$state.go is not loading all the functions in my js
I am trying to redirect to another url using state.go
$state.go("description-page", {disease: 'Thyroid'});
I am not even getting the scroll on the page. But when I refresh it, it works. Can anyone ...
0
votes
1
answer
25
views
How to declare directive or service i can use like a function in AngularJS expression
I have many functions to convert Datetime format.
I'd like to create a directive or a service to call these functions everywhere in my project.
Here is one of my functions.
$scope.formatDateTime = ...
0
votes
0
answers
250
views
While Creating $mdToast Service, function not calling
Creating the custom service, in that using $mdToast.show() method to display the toast message. This service is injected in another controller and calling this service function from that controller. ...
1
vote
2
answers
135
views
Why won't $compile work with service using a directive?
Please have a look at this example, since it is the best way to explain the problem.
In this example if you click the directive link, it does not compile the template, but instead displays it as "{{...
0
votes
1
answer
249
views
How to Handle multiple Ajax call calling same function?
Hi have 4 directives on the page, all directive require list of user.
User List is stored in database which require hhtp request.
As 4 directive are on the page at same time so 4 different ajax call ...