angular-bind-html-compile

WebJar for angular-bind-html-compile

Лицензия

Лицензия

MIT
Категории

Категории

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

Группа

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

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

angular-bind-html-compile
Последняя версия

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

1.3.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

angular-bind-html-compile
WebJar for angular-bind-html-compile
Ссылка на сайт

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

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

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

https://github.com/incuna/angular-bind-html-compile

Скачать angular-bind-html-compile

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

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

Зависимости

compile (1)

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

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

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

angular-bind-html-compile

This repo contains a bower package that provides an angular directive which can be passed trusted html with angular template content to evaluate.

The bind-html-compile directive allows for HTML containing directives to be compiled.

You should only use this directive where the content is coming from a trusted source.

Install

Install via bower

  • bower install angular-bind-html-compile

Add dependency to your app module

  • 'angular-bind-html-compile'

Usage

ng-bind-html:

<div ng-bind-html="data.content"></div>

If the data.content contained a directive, it would not be compiled.

bind-html-compile:

<div bind-html-compile="data.content"></div>

NB: Remember to add 'angular-bind-html-compile' to app module requirements. app.js:

var myAppModule = angular.module('myApp', ['angular-bind-html-compile']);

Development

  • Contributions welcome - Create an issue to discuss proposed changes and additions
  • All contributions should be done in branches and submitted as pull requests.
  • Code style follows the jsHint and jscs rules in .jshintrc and jscsrc. Automated travis tests will fail if these are not adhered to.

Releasing a new version

  1. Commit your changes.
  2. Follow the guidelines at http://semver.org/ to determine your new version number.
  3. Update CHANGELOG.md with your new version number and a description of changes.
  4. Update the version property in bower.json and package.json
  5. Commit those changes with the commit message "Bump to [version number]". [version number] should be in the format x.y.z.
  6. git tag [version number]
  7. git push
  8. git push --tags - must be done separately.
org.webjars.bower

Incuna

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

Версия
1.3.0