🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@anywhere-ui/angular

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anywhere-ui/angular

AnywhereUI integration for Angular apps.

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

@anywhere-ui/angular

AnywhereUI integration for Angular apps.

@anywhere-ui/angular combines the core AnywhereUI experience with the tooling and APIs that are tailored to Angular Developers.

Angular

Angular has a pretty good story for integration with web components but there are a few issues with the developer experience. If you want to know what the story is without the bindings go here: https://stenciljs.com/docs/angular.

With bindings the web components get wrapped in an Angular component and then immediately become available as Angular Components. Some of the advantages of doing this are that you get types for your components and you also get the ability to use ngmodel on inputs. Your developers then consuming your web components from Angular applications import an actual Angular Library and to them it feels as though they are interacting with Angular components.

Install

npm install @anywhere-ui/angular

Style

The css dependencies should be added in angular.json file

{
  ...

  "build": {
    ...

    "options": {
      "styles": [
          "./node_modules/@anywhere-ui/core/dist/anywhere-ui/anywhere-ui.css"
      ],
    }
  },
  ...

  "test": {
    "styles": [
        "./node_modules/@anywhere-ui/core/dist/anywhere-ui/anywhere-ui.css"
    ],
  }

  ...

}

Usage

import { AnywhereUiModule } from '@anywhere-ui/angular';

@NgModule({
  ...
  imports: [
    AnywhereUiModule.forRoot(),
  ],
  ...
})
export class AppModule { }

Config

AnywhereUI Config provides a way to change the properties of components globally across an app. It can set the ripple effect, app mode, animations, and more.

Global Config

To override the initial AnywhereUI config for the app, provide a config in AnywhereUiModule.forRoot in the app.module.ts file.

import { AnywhereUiModule } from '@anywhere-ui/angular';

@NgModule({
  ...
  imports: [
    BrowserModule,
    AnywhereUiModule.forRoot({
      rippleEffect: false,
    }),
    AppRoutingModule
  ],
  ...
})

Config Options

Below is a list of config options that AnywhereUI uses.

ConfigTypeDefaultDescription
rippleEffectbooleantrueIf true adds ripple effect to the components.

Keywords

anywhere-ui

FAQs

Package last updated on 15 Feb 2023

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