Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
html(lang="ru" ng-app="DemoCtrl")
head
  meta(charset="UTF-8")
  link(rel="stylesheet", href="css/style.css")
  script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js")
  title appEx
body
  .container
   {{ 2 + 8 }} //-работает
   h1 ExampleApp
    .books(ng-controller="example")
      .book
        {{ 2+12 }} //-не работает
        h3.work {{name}} //-не работает
 
var DemoCtrl = angular.module('DemoCtrl', []);
    DemoCtrl.controller('example', function ($scope) { 
        $scope.name = "lorem ipsum dolor"
    });
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers