angular-x2js

WebJar for angular-x2js

Лицензия

Лицензия

MIT
Категории

Категории

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

Группа

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

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

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

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

0.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

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

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

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

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

https://github.com/cesarbarone/angular-x2js

Скачать angular-x2js

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

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

Зависимости

compile (2)

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

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

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

angular-x2js  Build Status

A simple wrapper of x2js library

Dependencies

  • required: x2js.js

Install

Inside your project directory, runs:

bower install angular-x2js --save

Includes this lines in your index.html

<script src="bower_components/x2js/xml2json.js"></script>

<script src="bower_components/angular-x2js/src/x2js.js"></script>

Add the module to your angular app:

angular.app('myApp', ['cb.x2js'])

Usage

Inject x2js service where you need:

myApp.controller('MyController', ['$scope', 'x2js', function($scope, x2js) { ... }])

Usage

You can use all functions available in x2js:

x2js.xml2json - Convert XML specified as DOM Object to JSON

x2js.json2xml - Convert JSON to XML DOM Object

x2js.xml_str2json - Convert XML specified as string to JSON

x2js.json2xml_str - Convert JSON to XML string

x2js.asArray - Utility function for working with JSON field always in array form

x2js.asDateTime - Utility function for convert the specified parameter from XML DateTime to JS Date

x2js.asXmlDateTime - Utility function for convert the specified parameter to XML DateTime from JS Date or timestamp

Complete documentation available in:

https://code.google.com/p/x2js/

TODO

Support configs

License

MIT.

Please see the LICENSE file.

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

Версия
0.2.0