Use one-way binding to allow user to create a function in his own scope