Показать сообщение отдельно
  #1 (permalink)  
Старый 02.11.2017, 12:16
Аспирант
Отправить личное сообщение для Djambulat Посмотреть профиль Найти все сообщения от Djambulat
 
Регистрация: 27.04.2017
Сообщений: 79

Где тут ошибка в скрипте?
<!DOCTYPE html>
<html lang="en" ng-app="app">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    <script type="text/javascript" src="js/main.js"></script>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.6/angular.min.js"></script>
  </head>
  <body>
    <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
      <div class="container">
        
      </div>
    </nav>

    <content></content>

    <nav class="navbar navbar-default navbar-fixed-bottom" role="navigation">
      <div class="container">

      </div>
    </nav>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
  </body>
</html>


var app = angular.module("app", []);

app.directive('content', function() {
    return {
        restrict: 'E',
        templateUrl: 'content.html'
    }
})
Ответить с цитированием