ion.template function changing to future version