/**
 * Created by phoebe on 8/30/2015.
 */
angular.module("cards",[])
    .directive("cards",cardsDirective)
    .controller("cardsContrl", cardsContrl)
    .factory("cardsService", cardsService);

function cardsDirective(){
    return {
        restrict: "EA",
        scope:{},
        templateUrl:"components/cards/template/cards.html",
        link: function(scope, element, attrs){
            scope.data = 'change the content';

        }
    }
}

function cardsContrl(){

}

function cardsService(){

}
@@ -468,19 +468,120 @@
 sContrl(
-)%7B%0A
+$scope, $element, $attrs)%7B%0A    function change()%7B%0A        $scope.data = 'change the content once';%0A    %7D
 %0A%7D%0A%0Afunc

add the change content function