Skip to content
P

polymorpheus

A tiny library for polymorphic templates in Angular

by taiga-familyOpen source

#1306in UI Libraries
0In stores

Description

Polymorpheus is a tiny, dependency-free library for polymorphic templates in Angular. It is about 1 KB gzipped. Its main tool is one structu…

Highlights

  • One structural directive for customizable views
  • Content can be text, a function, a template or a component
  • Live context object for components
  • About 1 KB gzipped with no dependencies

Ratings & Reviews

No ratings yet

Be the first to rate polymorpheus.

People also visit

N

ngx-layout

Clone of Angular FlexLayout

UI Libraries
Launch
N

ngx-drag-scroll

A lightweight responsive Angular carousel library

UI Libraries
Launch
N

ngx-bootstrap-icons

Bootstrap Icons components library for your Angular Applications

UI Libraries
Launch
A

angular-split

Angular split component

UI Libraries
Launch
N

ngx-mask

Angular Plugin to make masks on form fields and html elements

UI Libraries
Launch
M

@MurhafSousli/ngx-gallery

Simplifies the process of creating beautiful image galleries for the web

UI Libraries
Launch

polymorpheus FAQ

What is Polymorpheus?

A small Angular library for polymorphic templates, which let a component accept different kinds of content through one directive.

What kinds of content does it accept?

Primitives like strings or numbers, functions that take a context, templates instantiated with a context, and components that get the context through dependency injection.

How does a component read the context?

Through the POLYMORPHEUS_CONTEXT token or the injectContext helper. The context is live, so the view updates when it changes.

Does it have dependencies?

No. The README describes it as dependency free and about 1 KB gzipped.

What are the best polymorpheus alternatives?

Popular alternatives to polymorpheus include ngx-layout, ngx-drag-scroll and ngx-bootstrap-icons. See all polymorpheus alternatives

Developer Stuff

Badges