File

core/search/search.service.ts

Description

A service which defines the search function.

Extends

StateService

Index

Properties
Methods
Accessors

Constructor

constructor(rootInjector: Injector, router: Router)
Parameters :
Name Type Optional
rootInjector Injector No
router Router No

Methods

add
add(item: Search)

Adds a new item to the search in the header.

Parameters :
Name Type Optional Description
item Search No

The item to add.

Returns : void
refresh
refresh()

Refresh the extension factories

Returns : void
remove
remove(item: Search)

Removes an search from the header.

Parameters :
Name Type Optional Description
item Search No

The item to remove.

Returns : void
Protected emitNewState
emitNewState()

Emits a new state.

Returns : void
map
map(mappedProperty: (undefined) => void)

Maps to a property and just returns that property.

Parameters :
Name Type Optional Description
mappedProperty function No

The property to map to.

Returns : Observable<any>

Properties

factories
Type : SearchExtension[]
Default value : []

Additional factories that can be added by plugins.

injectors
Type : []
Default value : [this.rootInjector]
items$
Type : Observable<Search[]>
Readonly refreshTrigger
Default value : new Subject()
Protected state$
Default value : new BehaviorSubject<Set<Search>>(new Set<Search>())

Accessors

state
getstate()

Returns the current state.

results matching ""

    No results matching ""