Skip to content

Instantly share code, notes, and snippets.

View in-async's full-sized avatar

inasync in-async

View GitHub Profile
@in-async
in-async / not-shared-rootScope.html
Last active August 29, 2015 14:16
rootScope is not shared between multiple ng-app. results in the [JS Bin](http://jsbin.com/gist/441f9dfaf6e27069a1fe).
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>rootScope is not shared between multiple ng-app.</title>
<style>
#div1 {
background: #dfd;
}
#div2 {
@in-async
in-async / AAA
Last active August 29, 2015 14:16 — forked from techimob/AAA
AAA
BBB
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JS Bin</title>
</head>
<body ng-app='myApp'>
<div id="content" ng-controller='fooCtrl'>
{{foo}}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JS Bin</title>
<style>
body {
margin: 0;
font-size: 30px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JS Bin</title>
<style>
body {
margin: 0;
font-size: 30px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JS Bin</title>
<style>
body {
margin: 0;
font-size: 30px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JS Bin</title>
<style>
body {
margin: 0;
font-size: 30px;
<html>
<body>
<div id="appContent">
<div>
<p>{{hello}}</p>
<input ng-model="hello">
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<script>
<html>
<body>
<div ng-app="myapp">
<div>
<p>{{hello}}</p>
<input ng-model="hello">
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<script>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body ng-app="myApp">
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<script>
angular.module('myLib', [])