angular-deckgrid icon indicating copy to clipboard operation
angular-deckgrid copied to clipboard

ng-model binding to custom directives taking too long

Open mboudreau opened this issue 11 years ago • 1 comments

I have a custom directive that requires an ngModel, which I set myself within deckgrid card template like so:

<div deckgrid class="deckgrid" source="entries">
    <journal-entry ng-model="card" tag-search="mother.searchTags></journal-entry>
</div>

However, when the controller in my custom directive runs, the scope variable set as entry: '=ngModel' is undefined since it seems to not have been binded yet ($scope.entry is undefined). This use to work perfectly well until I integrated it with deckgrid. Since the template I use for my directive is all binded, it does show the appropriate data when the model becomes available within the scope, but it's a problem when I have to set certain defaults in my controller.

mboudreau avatar Sep 17 '14 07:09 mboudreau

This has been fixed in my pull-request: https://github.com/akoenig/angular-deckgrid/pull/60

mboudreau avatar Sep 18 '14 07:09 mboudreau