New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue Template Selector #171
Comments
After a bit more investigation, it doesn't appear that any "if" statements are working on .
|
Is it only possible to use the if="$odd" template selector property for Vue?
Can't seem to get other "if" statements to work. For instance, my example code:
<Pager for="(item, index) in nodeContent" selectedIndex="0" > <v-template if="item.type==='image'"> <StackLayout class="pager-item" backgroundColor="#ff0000"> </StackLayout> </v-template> <v-template if="item.type==='video'"> <StackLayout class="pager-item" backgroundColor="#ff0000"> </StackLayout> </v-template> </Pager>
Gives me an error of
However, when I use if="$odd" it works fine.
Package.json
{ "nativescript": { "id": "org.nativescript.CredoNews", "tns-android": { "version": "6.3.1" }, "tns-ios": { "version": "6.3.0" } }, "description": "NativeScript Application", "license": "SEE LICENSE IN <your-license-filename>", "repository": "<fill-your-repository-here>", "dependencies": { "@nativescript/theme": "~2.2.1", "@vue/devtools": "^5.3.3", "apollo": "^2.27.3", "apollo-boost": "^0.4.7", "apollo-cache-inmemory": "^1.6.5", "apollo-cache-persist": "^0.1.1", "apollo-client": "^2.6.8", "apollo-link": "^1.2.14", "apollo-link-http": "^1.5.17", "apollo-link-rest": "^0.7.3", "graphql": "^15.0.0", "graphql-anywhere": "^4.2.6", "graphql-tag": "^2.10.3", "moment": "^2.24.0", "nativescript-fonticon": "^2.0.0", "nativescript-localstorage": "^2.0.1", "nativescript-pager": "^12.0.0-alpha.8", "nativescript-socketio": "^3.3.1", "nativescript-sqlite": "^2.6.0", "nativescript-toasty": "^3.0.0-alpha.2", "nativescript-ui-autocomplete": "^6.0.1", "nativescript-ui-listview": "^8.1.2", "nativescript-vue": "^2.6.1", "nativescript-vue-devtools": "^1.2.0", "qs": "^6.9.3", "tns-core-modules": "~6.3.0", "vue-apollo": "^3.0.3", "vue-moment": "^4.1.0", "vuex": "^3.3.0" }, "devDependencies": { "@babel/core": "~7.1.0", "@babel/preset-env": "~7.1.0", "apollo-cache-logger": "^1.1.1", "babel-loader": "~8.0.0", "nativescript-dev-webpack": "~1.4.0", "nativescript-vue-template-compiler": "~2.4.0", "node-sass": "^4.14.0", "vue-loader": "~15.4.0" }, "gitHead": "fa98f785df3fba482e5e2a0c76f4be1fa6dc7a14", "readme": "NativeScript Application" }
The text was updated successfully, but these errors were encountered: