Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A custom Angular 4+ renderer to use React for displaying the views. Ever wanted to use (most of) the React ecosystem in your Angular app? rectangly is here to help you out.
Using rectangly is as simple as importing it via
npm i rectangly
and applying the following changes to your application root module.
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { Rectangly } from 'rectangly';
import { MyPageComponent } from './mypage';
@NgModule({
imports: [BrowserModule],
providers: [Rectangly],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
declarations: [MyPageComponent],
bootstrap: [MyPageComponent],
})
export class PageModule {}
If you want to use some already created React components you should register them first:
import { registerComponents } from 'rectangly';
import { Button } from './mycomponents';
registerComponents('my', {
Button,
});
Using the this custom element in Angular templates is as simple as writing
<my-Button [disabled]="true" (onClick)="toggleDisabled()">Toggle me</my-Button>
While standard attributes only supply strings to React, computed attributes (using the square brackets) will pass in the evaluated expression. Passing in functions should always be done via the listener attributes (using the round brackets).
(tbd)
For installing the following command is required:
npm install
This will resolve and install all (development) dependencies.
Running the tests is as simple as typing:
npm run test
This will also run the linter. The standalone unit tests are available via test:unit
. Likewise, we can also easily report the code coverage:
npm run test:unit --coverage
Contributions are welcome and happily reviewed / accepted via pull requests. For more details read CONTRIBUTING.md.
This project adheres to semantic versioning.
A changelog exists, which should be rather complete from a high-level point of view. See CHANGELOG.md.
MIT © ZEISS Digital Innovation Partners see LICENSE.
FAQs
A custom Angular 4+ renderer to use React for displaying the views.
The npm package rectangly receives a total of 1 weekly downloads. As such, rectangly popularity was classified as not popular.
We found that rectangly demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.