Questions tagged [resolver]

363 questions
2
votes
1 answer

angular 2 - When i make a router navigate, the resolver react before the OnDestroy on the current page

I have two route: {path: 'route1',component: component1,resolve: {parameters: resolver1}} {path: 'route2',component: component2,resolve: {parameters: resolver2}} I navigate from route1 to route2 , the route2's resolver react before Ondestroy…
2
votes
1 answer

Angular 4: How to set the router config via REST on application init

I'm trying to set the router config(containing the allowed urls etc) based on data from a REST API. In this case, the url /test2 should end up at the HomeComponent. Url test2 is not present in the initial route config, it is added by a promise. So…
enf0rcer
  • 545
  • 2
  • 11
2
votes
1 answer

How To Prevent App Component Rendering in Angular 4.0 Until API Call Is Complete

I am building this Angular 4.0 app to parse the URL on startup (let's say 1.mysite.com or 2.mysite.com, pointed at the same angular app) and I need to render different things on the page depending on what the different URLs are, after making an API…
RTurek
  • 61
  • 6
2
votes
3 answers

How to load multiple data via service and wait for it in Angular2

I use Ionic 2 with Angular 2 in my project. In the root component you can click a "Add" button to add a new Report via a complex form and a lot of preprovided data (there are some selects that are feeded with data fetched from sqlite database) Now…
GrübelDübel
  • 165
  • 10
2
votes
1 answer

Angular 2 : Chain Observables in Resolver

I am new to Angular2 and observables. I am trying to return the result of a chain of observables to my resolver and couldn't find an answer on SO. Everything works fine when I return only one observable, but fails when those are chained. I've…
2
votes
1 answer

Asynchronous access to resolved data in Angular2

I'm a little confused with Resolvers for routes. The problem that Resolvers solve for me is that an object is present in the component at rendering time. If I do it without Resolvers and start fetching objects in a component's constructor via…
Jan B.
  • 6,030
  • 5
  • 32
  • 53
2
votes
1 answer

What is "declarative data loading" in relation to Falcor, GraphQL and Resolver?

I was reading Redux Without Profanity and the author says the following: The trend towards declarative data loading favours this model, mainly as this is easier to work with. Newer React frameworks such as Falcor, GraphQL and Resolver also…
A.com
  • 1,466
  • 4
  • 19
  • 31
2
votes
1 answer

Spring MVC 4.2.4 / Controller with RequestMapping("/**") and static resources

I have an angular application which uses ui-router, and is served by a SpringMvc (4.2.4) java app. I decided to map any requests to a single Controller/method which loads the single JSP page of my project. But, When I try to add static resources…
Djamon44
  • 31
  • 4
2
votes
0 answers

Pow 0.5.0 install error on El Capitan

I've been trying to install Pow 0.5.0 on my fresh installation of El Capitan. I'm using their direct install script. I get the following error: ~ $ sudo curl get.pow.cx | sh % Total % Received % Xferd Average Speed Time Time Time …
2
votes
2 answers

boost::asio hangs in resolver service destructor after throwing out of io_service::run()

I'm using a fairly simple boost::asio set-up, where I call io_service.run() from the main thread. I have a tcp resolver, and use async resolve to look up an address. When that look-up fails, I throw an exception inside the asynchronous callback. I…
Jon Watte
  • 6,579
  • 4
  • 53
  • 63
2
votes
1 answer

SNMP OID resolver

I am writing Python code in which a user inputs a SNMP OID in any of the following forms: 1.3.6.1.2.1.90.1.2 internet.2.1.90.1.2 I want my code to resolve internet to 1.3.6.1. I was thinking of creating a dictionary and giving the corresponding…
user3379410
  • 176
  • 1
  • 11
2
votes
2 answers

how to add SBT resolver (server side)

The official SBT documentation mentions own resolvers (link) from SBT point of view. The question is how to create own public server from whence dependencies can be downloaded (via resolvers from SBT). Assuming having simple apache/php webhosting…
petrbel
  • 2,428
  • 5
  • 29
  • 49
2
votes
1 answer

Make sbt completely forget repo.scala-sbt.org and repo.typesafe.com

I'm working on some sbt 0.13.5 projects which pulls over 100 dependencies to compile. It takes ~1s to reach servers like typesafe.com/scala-sbt.org/maven.org from here in Korea, which makes the dependency resolution take hours to finish. So I've…
lyomi
  • 4,230
  • 6
  • 30
  • 39
2
votes
1 answer

Using MEF to load DLLs with embedded libraries

I am currently writing an application suite with a plugin system that loads plugins at runtime using the MEF framework. I have currently setup one of my top level WPF applications to embed it's referenced DLLs as embedded resources and load them at…
EdSalter
  • 318
  • 2
  • 13
2
votes
1 answer

How to resolve the name properly by BeanELResolver

we have to work with a very specific class in Java that has the following property: protected SPSExchangedDocumentType spsExchangedDocument; public SPSExchangedDocumentType getSPSExchangedDocument() { return spsExchangedDocument; } I use the…
SPIRiT_1984
  • 2,717
  • 3
  • 29
  • 46