ng-pinyin

WebJar for ng-pinyin

Лицензия

Лицензия

MIT
Группа

Группа

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

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

ng-pinyin
Последняя версия

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

0.3.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

ng-pinyin
WebJar for ng-pinyin
Ссылка на сайт

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

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

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

https://github.com/iensu/ng-pinyin

Скачать ng-pinyin

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.bower : angular jar [1.2.22,1.3)

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

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

ng-pinyin

Angular attribute directive and filter for dynamic rendering of Chinese pinyin tone diacritics.

Each tone is represented by a digit between 1-4, after the syllable to which the tone applies:

  • ni3hao3 -> nǐhǎo
  • pin1yin1 -> pīnyīn
  • zhong1guo2 -> zhōngguó
  • lv4se4 -> lǜsè

Installation

ng-pinyin is available via bower and npm:

bower install ng-pinyin --save
npm install ng-pinyin --save

Usage

ng-pinyin can be used as either an attribute directive or as a filter.

ng-pinyin directive

As an attribute directive it can be applied to any user input field which has a ng-model assigned to it. The ng-model must of course refer to a string. The value will be updated as you type, with the designated pinyin tone markings.

<input ng-pinyin ng-model="text" />
<textarea ng-pinyin ng-model="text" />

pinyin filter

<div>{{someStringVar | pinyin}}</div>

License

MIT

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

Версия
0.3.0