Hard
Given the following directive:
app.directive('transformBinding', function() {
return {
restrict: 'A',
link : function (scope, element, attrs) {
element.bind('click', function () {
element.html('{{assertion}}');
});
}
};
});
The following controller:
app.controller('appController', function($scope) {
$scope.assertion = "I have been transformed";
});
And the following template:
<div ng-controller="appController">
<div transformBinding>click me</div>
</div>
If I click on "click me". Select the correct assertions in the list:
Author: Mathieu RobinStatus: PublishedQuestion passed 91 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
1
Add features and data to the $scope1
How to get all the values of an array in AngularJS1
Add an entry to the browser history1
What is the name of the AngularJS class that is used to create a singleton service?2
A way to modify the native behavior of a service1
How to access the parent scope in AngularJS1
What is the value of the expression `promise.then(null, function() {})` if `promise` is rejected with an error?