GitHub

DaffProductPageUrlResolver

Resolves product data for product pages, and will only resolve the url after a product request succeeds or fails. This resolver will take a full a url of the form some/url.html(secondary:outlet)?query=param#fragment and attempt to resolve a product from it. Assumes that the URL to be resolved is the primary outlet.

import { DaffProductPageUrlResolver } from '@daffodil/product/routing'
@Injectable()
class DaffProductPageUrlResolver {
  resolve(
    route: ActivatedRouteSnapshot
    state: RouterStateSnapshot
  ): Observable<boolean>
}

Properties

Name Type Description
resolve Observable<boolean>