Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

domimick

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

domimick

View render

  • 0.0.0-alpha-5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

domimick

Quick and dirty view library based on rxjs. Syntax inspired by angular2.

The simple example/demo completely renders in under 200ms. DOM updates are done asyncronously and only updates the nodes with the changes.

code style: prettier npm version


// app.ts
import { Component } from 'domimick'

@Component({
  selector: 'app-root',
  template: `<div>{{ this.name }}</div>`,
})
export class App  {
  name = `app-${Math.random()}`
}

// index.ts
import { bootstrap } from 'domimick'

import { App } from './app'

document.addEventListener(document, 'DOMContentLoaded', () => {
  bootstrap(App)
})

Adding new components will just require a simple import into index.ts

// app/myComponent.ts
import { Component } from 'domimick'

@Component({
  selector: 'my-component',
  template: `<div>{{ this.name }}</div>`,
})
export class MyComponent  {
  name = `app-${Math.random()}`
}

// index.ts
...
import './app/myComponent'
...

No need to inject or provide it. The component is automatically registered by the library. It will auto-mount when ever it encounters a my-component custom element.

TODO

  • Component actions
  • Component inputs
  • Form elements
  • Complex template expressions
  • Seriously clean up the code
  • Remove dependency on experimental decorators
  • Decouple from the DOM
  • Server side rendering
  • Debounce and batch dom updates

FAQs

Package last updated on 24 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc