Skip to content

Missing def.run #1

@ozjongwon

Description

@ozjongwon

Hi,

I found def.run is missing in gyr and I wrote one for myself. You may want to add it to gyr.

Cheers

(defmacro def.run [module & defs]
  `(do
     ~@(map (fn [[params body]]
              `(-> (js/angular.module ~(str module))
                   (.run (fn ~params ~body))))
            defs)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions