Questions tagged [sharedservices]

23 questions
8
votes
2 answers

Angular 4 emitting and subscribing to an event in a shared service

I am emitting an event in my main component: main.component.ts this.sharedService.cartData.emit(this.data); Here is my sharedService.ts import { Component, Injectable, EventEmitter } from '@angular/core'; export class SharedService { cartData =…
Stef
  • 644
  • 1
  • 8
  • 25
5
votes
2 answers

Angular - shared service between components doesn't work

I have a service where I declare my variable. In my component I use this variable to put data into it. Service: @Injectable() export class DataService { public msgs = []; constructor() { } } Now I use this variable in my…
user3356007
  • 393
  • 1
  • 6
  • 20
3
votes
2 answers

Example of using Shared Services. Prism

I have 5 modules and I am using EventAggregator pattern to communicate between modules. And it seems to me that my code becomes ugly and it is bad design to use EventAggregator in my project. There are three ways to communicate between…
StepUp
  • 36,391
  • 15
  • 88
  • 148
2
votes
1 answer

Angular SharedService with BehaviorSubject lost Data on refresh

i created sharedService it works perfectly , i can shared data from one component to another (this both are irrelevant component in different module). Data Transfer as follows: AdminDashboard.Component (update value) ===> conference.component (get…
Bhagvat Lande
  • 1,392
  • 3
  • 17
  • 34
1
vote
2 answers

How can we send data from one page to other through shared service in angular?

I have two components. In one component there is check boxes. I want the value of checked items to display on another page's component when user click on change page. in component 2 when user click get checked items, then i retrieve value from…
Vikash Mishra
  • 319
  • 3
  • 11
1
vote
2 answers

Shared service's method not called in NgOnInit while loading the component through router.navigate method

I have a detail component and child components overview and contact, I have used a shared service to share an array ImageMap which is updated by the detail after retrieving from a service on its initialization and subscribed and accessed by the…
Mithil Mohan
  • 223
  • 2
  • 11
1
vote
1 answer

How to access a SharedService at Module level in Angular 5+

I'm relatively new to Angular5/TypeScript, so I apologize for the (maybe) trivial question. I'm trying to implement an authentication service which I intend to use in order to let my Angular5 frontend, consume some REST API exposed by a wordpress…
user4096537
1
vote
0 answers

Angular2 : Adding an observer only in the root module of a multi modular angular2 app does not work

In my project i have multiple modules and I have created one shared service which is available in the utility module. The service is as below : @Injectable() export class ProgressloaderService { private isLoading: BehaviorSubject = new…
1
vote
3 answers

angular2 singleton alternative

Imagine the following situation. Component A updates an array A in Service A. Component B uses/reads array A in Service A. If I want to Component B to be notified...when component A updates the Array, I could use a singleton, but my…
Maniac_1979
  • 879
  • 3
  • 10
  • 26
0
votes
1 answer

When pass a selected item through a shared service between to component, how to respond all changes, not just onInit?

Mg goal is when I select an item from dropdown, which is in a button component, then it passes the item to a table component throughout a shared service. I need this to change the table by just showing the selected element. Now, if I select the…
0
votes
0 answers

How to share the data between the different components in shared services in angular

I want to share the data from dashboard component to navbar component with the shared service as given below. shareddata.service.ts export class SharedData { private sensorDet = new BehaviorSubject(''); currentsensorDet =…
Haritha
  • 77
  • 2
  • 10
0
votes
1 answer

Angular insert service in the file.html

I'm using Angular 7 (and one day I have to upgrade my version). I have a service that have some variables that can change according to some Promise (http GET, PUT, ... response). I wish to print these variables on a template. Can I do…
yalabef21
  • 151
  • 9
0
votes
1 answer

Hyperion Foundation Services Servers are down

I have installed Hyperion EPM 11.1.2.4 in CentOS 7 i.e Foundation Services, Essbase and Financial Reporting. The database I have used is SQL Server. CentOS is not the officially supported OS for Oracle HTTP server and hence I went ahead with…
0
votes
1 answer

Prism6 shared service and dependency property

I use Prism6 + Unity container for desktop application developing. This is a long-read, sorry. So I ask at top: Prism SetProperty() function is not rising property changed event if input value is Unity singleton. And I understand why: because input…
Sergey Alikin
  • 159
  • 10
0
votes
1 answer

How to create and assign access to a user via Maxl?

Hyperion shared services is not working properly so how can I create and assign an LDAP user access to cubes?
user2373210
  • 461
  • 2
  • 5
  • 16
1
2