This package has been deprecated

    Author message:

    This library has been deprecated.

    ag-relation-resolver

    0.0.2 • Public • Published

    ag-relation-resolver

    Build Status NPM version Dependency Status Coverage Status

    Usage:

    Relation resolver basically can do two things:

    Warm up (load) relation datas and use directives to show it

    RelationResolver = require('ag-relation-resolver')()
    RelationResolver.prepare(resourceSchemadataArraypopulateCollectionWithValues=true).then (populatedDataArray)->
        console.log("Array with populated relation values:"populatedDataArray)

    Warm up (load) relation datas and populate original data (ids etc) with values (username of user, etc)

    MyModule = angular.module('MyModule'[
        require('ag-relation-resolver')(angular)
    ])
    MyModule.controller (RelationResolver) ->
        RelationResolver.prepare(resourceSchemadataArraypopulateCollectionWithValues=false).then ->

    render with directives like:

    <field-user ng-if="value && displayType == 'user'" user-id="value"></field-user>
    <field-relation ng-if="value && displayType == 'relation'" schema="fieldSchema" data="value"></field-relation>
    <field-multi-relation ng-if="value && displayType == 'multirelation'" schema="fieldSchema" data="value"></field-multi-relation>

    Keywords

    none

    Install

    npm i ag-relation-resolver

    DownloadsWeekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • ag-hostmaster