For the purposes of this article and tutorial, we will focus on Angular, however, other frameworks such as React or Vue.js can be used (simultaneously) in a similar fashion.ĭo you wish to serve the frontend in the same repository as your Laravel project? Do you have an existing Laravel project with an API and now you want to incorporate a different frontend? Have you settled on Laravel as your backend-of-choice to deliver a RESTful API but want to experiment with multiple javascript frameworks? If you answered yes to any of the following, then this method is for you. This method will allow you to add any (and multiple) frontend javascript frameworks to Laravel. Here is the changelog from github reposition, where you can check available versions and the differences.How to Setup Laravel With Angular (or Any Javascript Framework) So I guess the only way to know what angular-cli version should be installed is to try various versions, create a new project and checkout the package.json to see which angular version is used. NOTE: I have not found any page displaying the compatibility matrix of angular and angular-cli. The resulting white app will be created in the desired angular version. Install an angular-cli specific version npm install -g 2] Create a project ng new you-app-name npm uninstall -g run (-force flag might be required) npm cache clean If you're not sure of the angular-cli version installed in your environment, uninstall it. So getting the correct angular-cli version will lead you to getting the desired angular version.įrom that assumption, your question is not about angular-cli, but about npm. To answer your question, let's assume that you are interested in a specific angular version and NOT in a specific angular-cli version (angular-cli is just a tool after all).Ī reasonnable move is to keep your angular-cli version alligned with your angular version, otherwise you risk to stumble into incompatibilities issues.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |