Skip to main content
1 vote
2 answers
493 views

I am trying to update the useClass based on the condition. When I am trying to change the tab I want to update the service. So I wrote one factory function for that. let useClassFactory = ( conn: ...
Saravanan's user avatar
1 vote
0 answers
584 views

Is there a way to register module/component providers in a dynamic way? I know about the useFactory option but this is only about a specific provider. What I want to achieve is to register some ...
takthetank's user avatar
1 vote
1 answer
112 views

When I tried to return a $http.post() object from a factory function with Angular, it throws me this error: Below is my code: AngularUtils.js Fenrir.factory('AngularUtils', function ($http, $log, $...
TheVicShow's user avatar
4 votes
1 answer
1k views

Solved As mentioned below by Aaron, the "Other Option" approach works without issues and feels a lot cleaner. I'll leave the updates and everything in case anyone in the future has a similar ...
iEquivalent's user avatar
0 votes
0 answers
112 views

I am working with Angular.Js and using factory to load my data, I have an issue where my request are duplicated.i am injecting another module named filter module. my search module var searchjob = ...
Karthick Kumar's user avatar
2 votes
1 answer
1k views

I want a value from the window.location search parameters passed to the body of a dependency provider factory, ideally in an idiomatic Angular way. Use case: writing my first Angular app I have the ...
MvG's user avatar
  • 61.8k
0 votes
0 answers
145 views

I have this factory which has ngx-timpicker factory.ts , i want to include it in my ts file to use the factory in my time.ts file , but I am getting error in my import line in time.ts file that error -...
Nicoleta Wilskon's user avatar
13 votes
4 answers
13k views

In my Angular app, I'm trying to use a factory provider in my module: export function getMyFactory(): () => Window { return () => window; } @NgModule({ providers: [ { provide: WindowRef,...
Francesco Borzi's user avatar
1 vote
1 answer
502 views

I am trying to extend the functionality of this component by adding a generic event emitter import { Component, Directive, NgModule, Input, ViewContainerRef, Compiler, ComponentFactory, ...
smclaughlin's user avatar
0 votes
0 answers
169 views

I have a problem current in which i am using angular js to fetch and display data. The following is the code var angularDynamicsCRM = angular.module('angularDynamicsCRM', ['ngResource']); /// ...
valredr's user avatar
  • 21
1 vote
1 answer
90 views

I need translate value factory. this factory receive translateData from server. and angular controller call convertValue function. but $http is async method so controller get undefined value. because ...
hwyoo's user avatar
  • 11
-1 votes
1 answer
226 views

I have controller which fetches some data and adds some extra items based on the information. The information should be searchable. I have working code for that now, but was wondering what is the best ...
Lars Rødal's user avatar
1 vote
0 answers
825 views

I'm using a component factory to load in different components via a Block input which states characteristics of the block - internal variables. Then, depending on the variables set, the factory will ...
Johnathan Brown's user avatar
8 votes
3 answers
12k views

I was reading an article of Max NgWizard K, about how Angular updates the DOM. I came across the following: For each component that is used in the application Angular compiler generates a factory. ...
Willem van der Veen's user avatar
1 vote
4 answers
89 views

I'm new on Angularjs and I'm trying to build my first application. Let's say I have to routes that loads two different views: 127.0.0.1:8080/site 127.0.0.1:8080/site_details Maybe having two different ...
Thomas's user avatar
  • 99

15 30 50 per page
1
2 3 4 5