"repositories": [
{
"type": "git",
"url": "....git"
}
]
data: {access_token:'1NLS4Os8zNwdeImN2hUUcaDpnTzNrfeM'}
use \Bitrix\Main\Data\cache;
$cache = cache::createInstance();
if( $cache->initCache( $ttl, $id, $id ) ){
$res = $cache->getVars();
$arRes = $res["arRes"];
}else{
$res = array();
try{
$cache->startDataCache( $ttl, $id, $id );
$cache->endDataCache( array(
"arRes" => $arRes
) );
}catch( SystemException $e ){
$cache->abortDataCache();
ShowError( $e->getMessage() );
}
}
app..directive( 'vkComments', [
'$window',
'$timeout',
function( $window, $timeout ){
return {
restrict: 'E',
template: '<div id="vk_comments" ng-transclude post-url="{{url}}"></div>',
scope: {
readyToBind: '@'
},
replace: !0,
transclude: !0,
link: function( $scope, $element, $attr ){
$scope.$watch( 'readyToBind', function(){
$timeout( function(){
$window.vkComment = VK.Widgets.Comments( 'vk_comments', { limit: 10, attach: '*', autoPublish: 1, mini: 1 }, MD5( $attr.postUrl ) );
}, 100 );
} );
}
}
}
] );