Skip to content

Instantly share code, notes, and snippets.

@nerder
Last active December 3, 2015 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nerder/9ebc95b8cd157b550afe to your computer and use it in GitHub Desktop.
Save nerder/9ebc95b8cd157b550afe to your computer and use it in GitHub Desktop.
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";
});
<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