pass state from child scope to parent scope by model binding