Created
August 28, 2015 20:39
-
-
Save villander/1c311903b77b9595c36a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Meu jade | |
//- Diretiva do gráfico de linhas | |
div#colGraph | |
graph-lines(api = "{months: dashboardCtrl.dados.months}") | |
// Minha diretiva | |
app.directive('graphLines', function () { | |
return { | |
scope: { | |
api: '=' | |
}, | |
restrict: 'AE', | |
templateUrl: '/painel/partials/painel/graphDashboard', | |
controller : function($scope){ | |
$scope.$watch("api.months", function(newValue, oldValue) { | |
console.log($scope.api.months); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment