Доброго всем

Mojolicious::Plugin::JSUrlFor::Angular

¡ ¡ ¡ ALL GLORY TO GLORIA ! ! !

VERSION

0.18

NAME

Mojolicious::Plugin::JSUrlFor::Angular - Mojolicious routes as Angular javascript module.

SYNOPSIS

# Instead of helper only use generator for produce static file
# cd <your/app/dir>
perl script/app.pl generate js_url_for_angular > public/js/url_for.js
# In output file inspect/remove nonsecure routes

# in javascript
angular.module(moduleName, ['appRoutes', ...])
.config(function(appRoutes) {
  appRoutes.baseURL('https://foo.com');
})
.controller('fooControll', function (appRoutes) {
  var url = appRoutes.url_for(...); // see help inside generated js file
});

DESCRIPTION

Генерация маршрутов для Angular1 Mojolicious routes genenerator for Angular1. Forked from Mojolicious::Plugin::JSUrlFor.

HELPERS

None public

CONFIG OPTIONS

None options

GENERATORS

js_url_for_angular

perl script/app.pl generate js_url_for_angular > path/to/relative_file_name

METHODS

Mojolicious::Plugin::JSUrlFor inherits all methods from Mojolicious::Plugin and implements the following new ones.

register

$plugin->register;

Register plugin in Mojolicious application.

AUTHOR

Михаил Че (Mikhail Che) <mche[-at-]cpan.org>

BUGS

Please report any bugs or feature requests to Github https://github.com/mche/Mojolicious-Plugin-JSUrlFor-Angular/

Also you can report bugs to CPAN RT

SEE ALSO

Mojolicious::Plugin::JSUrlFor

Mojolicious

Mojolicious::Guides

http://mojolicio.us