Ionic apps in Visual Studio 2015 - ionic-framework

I am trying to build a cordova/ionic app in visual studio 2015. I have loaded the ionic & cordova extensions. I have installed Node. When i create the template for an ionic app, none of the ion tags in the html file are recognised.
e.g. both of these are not recognised
<body ng-app="starter">
<ion-nav-back-button>
After much searching i also have noticed that i don't have a _references.js file. I created the file but i don't get the auto sync option.
Have i missed a reference in my setup?

Did you create your ionic project from an existing VS template? That could help you avoid any missing parts that you forgot to manually install. The first few steps of this guide can show you how to add these ionic templates to VS: http://taco.visualstudio.com/en-us/docs/tutorial-ionic/

Related

How to download Highchart PDFs in Mobile Apps?

I am using the Ionic version - 5.4.16 and am required to download PDF/Images files from HighCharts Options. On the browser, while development, it's working.
But in Ionic Build, it isn't.
I tried to inspect the changes and received this message on clicking "Download options.
Resource interpreted as Document but transferred with MIME type image/png: "https://export.highcharts.com/"
Please advise.
The problem arises because the export module on Android works only for images.

How to make Ionic 4 build for a browser?

I’m unfortunately having difficulty deploying my ionic project for web. No matter what I do, commands such as 'ionic build, ‘ionic build --prod’, ‘ng build --prod’, or whatsoever always create a www folder that is incorrect. The index.html in this www folder is always blank when viewed from a browser.
I’ve tested this issue on other ionic projects as well (just generated some from templates) and the same issue occurs here, with the index.html in the www folder always being displaying a blank site. If possible, I’d appreciate any help if that’s OK!
ionic cordova platform add browser
ionic cordova run browser
ionic cordova build browser --prod
For testing purpose use ionic serve . It will rebuild automatically every time when you update your code.
have you changed the base href in index.html from
base href="/"
to
base href="."

Cannot get unity hololens project to work

I'm trying to get a project to work that i downloaded this link over here, from github.
I've followed all the (configuration) steps in the install guide and i am using the exact versions of the software as described in the guide.
The problem seems to be that some references to the Windows namespace do not work.
I've tried adding it but i can't get it done in the usual way.
The error messages i get when building in unity:
When i open the project in visual studio 2015 update 3 (after building it in unity):
It seems that the option to simply add the reference in visual studio is not present in this kind of project.
I think this shouldn't be to hard to resolve but i lack the skills and experience as i usually develop windows apps solely in visual studio.
EDIT
These are the configurations I used:
i open the project in visual studio 2015 update 3
You should use Visual Studio 2017 with the latest Win10 SDKs.

How to automatically generate a page-name.module.ts?

So in the newest version of Ionic when we use the generate page command
ionic g page page-name
Ionic creates the page's directory containing the page-name.html, page-name.scss and page-name.ts. It does NOT automatically create the file page-name.module.ts needed for lazy loading and deep links feature.
My question is: Is there any way or any plugin that automatically creates that file for each new page (or for all the existing ones)? Or do we really need to create that file manually for each and every page we create for our project?
As i experience in ionic cli 3.5 while creating a page, the page module was not getting generated. but on ionic cli 3.6 it was generating. need to check on ionic 3.7 which is released today.

Where to get .xap file in Windows using ionic build?

I am using Ionic framework for my project. As per ionic build I have used the build command for windows:
ionic build windows
After the build I get the file structure as below:
The issue is I'm not able to figure out were do I get the .XAP file inside the platform/windows folder and I'm completely new on Windows build.
I'm just posting this as an answer, to which we came in the comments under the OP's question:
Add the windows phone platform: ionic platform add wp8.
Build for wp8: ionic build wp8.
The file CordovaAppProj_Debug_AnyCPU.xap is the one you're looking for.
However, I would like to turn your attention to these few posts:
http://blog.vjrantal.net/2015/01/08/experiences-with-ionic-on-windows-phone-8-1/
http://blogs.msdn.com/b/msdn_answers/archive/2015/02/10/running-cordova-apps-on-windows-and-windows-phone-8-1-using-ionic-angularjs-and-other-frameworks.aspx
http://appfoundry.be/blog/2014/10/16/ionic-windows-phone
which basically confirm what the official Ionic team says that the platforms wp8 and windows in general are not yet fully supported; but they hope they soon will be.