Setup ASP.NET MVC 4 or 5 project with Angular 2 -


i learning angular 2 typescript.

i using following resource. quickstart angular 2

now there , other examples found telling create package.json file lists dependencies project.

i think creating package.json file , listing dependency packages kind of structure followed in .netcore project.

in mvc 4 or 5 have packages.config file lists although packages going use.

i not saying can not use package.json file when have package.config file.

but there simple way integrate angular 2 typescript in mvc webapplication project using nuget packages , started?

if not available please let me know how can setup angular 2 type script in asp.net mvc 4 or 5?

as said, in asp.net mvc application have package.config file. file holds information nuget packages you've installed in app. file related server-side packages.

package.json file related front-end part of app. holds list of packages you've installed in app. time npm packages. holds information app , more. can read more here.

you can't mix files , don't want to. firstly, files have different format (xml , json). in addition, said before, hold information different parts of application. lastly, , personal opinion, when create application rich ui , use angular2, it'd better split parts of app 2 different projects. 1 of them web apis , second ui part only. such structure, no need packages.config in ui project , no need package.json in web api project.

for last question, can start here. can take on sample app.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

android - CoordinatorLayout, FAB and container layout conflict -