AngularJS

Search for '{{search_term}}'

AngularJS UI с Bootstrap

CMOS is the Code-Maven Open Source podcast that also includes video interviews. Subscribe to this feed RSS feed with your Podcast listener app or via iTunes iTunes.

Чтобы запустить AngularJS вместе с Bootstrap, вы можете использовать проект Angular UI Bootstrap.

examples/html/angular-ui-bootstrap-skeleton.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport"
     content="width=device-width, initial-scale=1, user-scalable=yes">
  <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.14.3/ui-bootstrap-tpls.min.js"></script>

  <script>
   angular.module('DemoApp', [])
   .controller('DemoController', function($scope) {
       $scope.message = "Hello World";
   });
  
  </script>

</head>
<body ng-app="DemoApp" ng-controller="DemoController">

<div class="container-fluid">
  <div class="row">
      <div class="col-md-1"></div>
      <div class="col-md-10"></div>
      <div class="col-md-1"></div>
  </div>

  <div class="row">
      <div class="col-md-2"></div>
      <div class="col-md-7">
        <h1>Main Title</h1>
        <h2>Sub title</h2>
        {{message}}
      </div>
      <div class="col-md-3"></div>
  </div>
</div>

</body>
</html>

Savenkova Natalya
Переводчик
Savenkova Natalya
Gabor Szabo
Автор
Gabor Szabo

Comments