Skip to content

Directive for angular 8 for numeral ending dependent of value

Notifications You must be signed in to change notification settings

maxouni/angular-plural-ru-directive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

angular-plural-ru-directive

Directive for Angular for numeral ending dependent of value (Russian language)

Директива для Angular, решающая задачу подстановки в русском языке склонения слов, зависящих от переменной количества.

Если вдруг, не хочется делать через ngSwitch

Использование

  1. Импортируем директиву в модуль

  2. Подставляем в HTML

<span appPluralRu="" [value]="4" [arVariants]="['год', 'года', 'лет']"></span>

About

Directive for angular 8 for numeral ending dependent of value

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published