delphimvcframework/samples/contribsamples/angularjs/www/js/directives/notify.js
2016-11-07 14:52:32 +01:00

32 lines
888 B
JavaScript

"use strict";
app.directive("bootstrapNotify", function() {
return {
restrict: "E",
replace: true,
transclude: true,
templateUrl: "js/directives/notify.html",
scope: {
viewLogin: '=',
username: '=username' // set the name on the directive's scope,
// password: '=password'
// to the name attribute on the directive element.
},
link: function(scope, elem, attr) {
// scope is the directive's scope,
// elem is a jquery lite (or jquery full) object for the directive root element.
// attr is a dictionary of attributes on the directive element.
},
//the controller for the directive
controller: function($scope, $routeParams) {
},
compile: function(scope, element, attrs) {
}
};
});