ASP.NET MVC + AngularJs + Bootstrap

1

I'm working with ASP.NET MVC 4.

I have some doubts, when installing Angulars is there a Bootstrap for Angulars? , oh you do not have to see each other, is the installation of both independent? .

    
asked by Pedro Ávila 27.12.2016 в 05:11
source

2 answers

5

Bootstrap and AngularJs are two different Frameworks coexist without any problem. They do different things that complement each other. Bootstrap is a framework developed and released by Twitter that aims to facilitate web design AngularJS is a JavaScript MVC framework for Front End Web Development that allows you to create SPA Single-Page Applications applications.

You can invoke them from the html with a line like this:

 src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js">

and for Boostrap:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"> src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js">

Or if you are working with Visual Studio you can install it as a Nuget for the project.

I suggest looking at these Url: link

link

    
answered by 27.12.2016 / 06:38
source
3

Angular and Bootstrap are two different things. The first is a javascript framework that does not make decisions regarding the design of your site. The second is a responsive and mobile-first framework for the front-end that gives you a few useful tools such as a grid system and a large number of ready-to-use styles and components.

The problem arises because bootstrap uses jquery which does not always coincide with the angular flow and forces you to be creating directives to adapt them.

If you want to use both in a project, I recommend you download ui-boostrap which are the directives of bootstrap for angular.

After following the installation instructions you should include the module with

angular.module('myModule', ['ui.bootstrap']);

and now you can use both frameworks with a minimum of friction.

    
answered by 28.12.2016 в 15:49