1

I need to change the application-wide CSS file dynamically for a nativescript app. ( Not the page css file, the application css file)

1 Answer 1

2

You can change the app.css file programmatically. In your app.js / app.ts file, add something like:

import application = require("application");
application.cssFile = "style.css";

application.start({ moduleName: "main-page" });

Import application in other places of your application and try to modify cssFile property.

See

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.