-
-
Save guilsa/7a5d7f7e366cb5dbc7dd529d634efc4f to your computer and use it in GitHub Desktop.
Adding KnockoutKS define block for RequireJS
This file contains hidden or 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
define(['knockout'], function (ko) { | |
return function app() { | |
this.firstName = ko.observable('Elaine'); | |
this.capitalizeFirstName = function() { | |
var currentVal = this.firstName(); | |
return this.firstName(currentVal.toUpperCase()); | |
}; | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment