エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Directives Talking to Controllers - Thinkster
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Directives Talking to Controllers - Thinkster
<body ng-app="coolApp" ng-controller="FunCtrl as fun"> <div entering>Hover over me for fun times<... <body ng-app="coolApp" ng-controller="FunCtrl as fun"> <div entering>Hover over me for fun times</div> </body> function FunCtrl() { var self = this; self.start = function() { console.log("Fun times have been started!"); } } angular.module('coolApp', []) .controller('FunCtrl', FunCtrl) .directive("entering", function(){ return function(scope, element, attrs) { element.bind("mouseenter", function(){