2015-11-28 19 views
0

http://jsfiddle.net/2ELLB/270/添加具有角表情

我試圖使用添加有angularjs到日曆時日曆奇怪的行爲。我有一個奇怪的問題,該值從控制器到HTML頁面綁定,但是當我檢查的鏈接,而不是綁定值的鏈路來爲

$scope.date = 2014-05-04 12:00:00; 

%7B%7Bdate%7D%7D

回答

0

這是不正確

$scope.date = 2014-05-04 12:00:00; 

這可能是這樣

$scope.date = "2014-05-04 12:00:00"; 

在你的代碼沒有包含在NG-應用和NG-控制器

<span class="addtocalendar atc-style-blue"> 

應該是這樣的

<span ng-app="myApp" ng-controller="new" class="addtocalendar atc-style-blue"> 

工作代碼here

希望這有助於!

+0

感謝您的時間,但..nope它不工作,..當我點擊結果中的按鈕,然後單擊icalendar我收到以下錯誤消息'AddToCalendar.com獲取無效的事件參數' –

+0

以及這是另一個問題一起檢查icalendar網址您需要傳遞參數的方式。在您提到的問題中,%7B%7Bdate%7D%7D正在通過修復。 – Cyril