Closed sirpy closed 9 years ago
Otherwise you can simply call a function in your controller/scope/etc. then you should be able to use Sugar as normal.
@sirpy
sugarjs extended native javascript object. so, you can uses sugarjs methods inside angular expressions.
but, Date and Object are not directly. you have to define methods like $socpe.Date = Date
or $scope.Object = Object
. then you can uses {{ Date.create() }}
.
Going to close this one out now as it seems to be answered. Note that right now v2.0.0 is under development which will allow Underscore-like behavior in accessing through a global, which answers your first question.
two quesitons