Open Akira0705 opened 5 years ago
::: demo [vanilla]
<html> <div ng-app="myApp" ng-controller="myCtrl"> {{ firstName + " " + lastName }} </div> </html> <script> var app = angular.module("myApp", []); app.controller("myCtrl", function($scope) { $scope.firstName = "John"; $scope.lastName = "Doe"; console.log('$scope: ', $scope); }); </script> <style> #vanilla-box { color: red; } </style> :::
head: [ ['script', { src: 'http://oss.yixtrip.com/vendor/jquery/jquery.min.js' }], ['script', { src: 'https://cdn.staticfile.org/angular.js/1.4.6/angular.min.js' }] ], plugins: [ 'demo-block' ]
my code:
::: demo [vanilla]