angular-inflector

WebJar for angular-inflector

Лицензия

Лицензия

MIT
Категории

Категории

Angular Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

angular-inflector
Последняя версия

Последняя версия

0.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

angular-inflector
WebJar for angular-inflector
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/iobaixas/angular-inflector

Скачать angular-inflector

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-inflector/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-inflector</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-inflector/
implementation 'org.webjars.bower:angular-inflector:0.2.0'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-inflector/
implementation ("org.webjars.bower:angular-inflector:0.2.0")
'org.webjars.bower:angular-inflector:jar:0.2.0'
<dependency org="org.webjars.bower" name="angular-inflector" rev="0.2.0">
  <artifact name="angular-inflector" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-inflector', version='0.2.0')
)
libraryDependencies += "org.webjars.bower" % "angular-inflector" % "0.2.0"
[org.webjars.bower/angular-inflector "0.2.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

Platanus Angular Inflector Utilities Build Status

Small suite of inflector functions, hopefully this lib will no longer be needed when angular makes the inflector functions they use part of the public api.

Installation:

Optional Use bower to retrieve package

bower install angular-inflector --save

Include angular module

angular.module('platanus.inflector')

Usage

This library registers the inflector service, the following methods are provided by the service.

inflector.camelize('the-snake'); // should output theSnake
inflector.camelize('the-snake', true); // should output TheSnake
inflector.parameterize('TheCamel'); // should output the-camel
inflector.parameterize('TheCamel', '_'); // should output the_camel
inflector.dasherize('the_snake'); // should output the-snake
inflector.dasherize('the_snake', '&'); // should output the&snake
inflector.pluralize('index'); // should output indexes
inflector.singularize('mice'); // should output mouse

Credit for the general singularize and pluralize implementation and the english locale rules goes to Ryan Schuft with his ActiveSupport's Inflector port.

For now only the english transformation rules are included for the singularize and pluralize functions.

Contributed locales:

We thank the following developers for contributing with new locales rulesets:

  • pt-BR: Daniel Fernando Lourusso

Contributions for new locale rules are very welcomed!

Версии библиотеки

Версия
0.2.0