Last active
December 3, 2015 14:29
-
-
Save nerder/9ebc95b8cd157b550afe 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
angular.module('plunker', []) | |
.controller('MainCtrl', function($scope) { | |
$scope.myModel = {}; | |
$scope.myModel.to = "init-"; | |
//AT THE END OF EXECUTION | |
//What i expect to have is something like | |
$scope.myModel.to = "init-something-to-slug"; | |
$scope.myModel.from = "Something to slug"; | |
}); |
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
<slug from="myModel.from" to="myModel.to"></slug> | |
<p ng-model="myModel.to">{{myModel.to}}</p> | |
<input type="text" ng-model="myModel.from"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment