Answer the question
In order to leave comments, you need to log in
Angular 1 how to connect a module?
c angular 2nd day. how to connect this extension
https://github.com/angular-ui/ui-mask
index.php
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<title>Video.js | HTML5 Video Player</title>
<script src="lib/script.js"></script>
<script type="text/javascript" src="bower_components/angular/angular.js"></script>
<script type="text/javascript" src="bower_components/angular-ui-mask/dist/mask.js"></script>
<script
src="https://code.jquery.com/jquery-2.2.3.min.js"
integrity="sha256-a23g1Nt4dtEYOj7bR+vTu7+T8VP13humZFBJNIYoEJo="
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script> </head>
<body>
<div class="container" style="margin-top: 10px">
<h1> hey ley</h1>
</div>
</body>
</html>
var myApp = angular.module('myApp', ['ui.mask']);
Answer the question
In order to leave comments, you need to log in
HTML
<!DOCTYPE html>
<html lang="en" ng-app="forToster">
<head>
<meta charset="UTF-8">
<title></title>
<script type="text/javascript" src="bower_components/angular/angular.js"></script>
<script type="text/javascript" src="bower_components/angular-ui-mask/dist/mask.js"></script>
<script type="text/javascript" src="main.js"></script>
</head>
<body ng-controller="MainController">
<input ng-model='value' ui-mask='{{mask}}'>
<p>{{value}}</p>
</body>
</html>
var app = angular.module('forToster', ['ui.mask']);
app.controller('MainController', ['$scope', function($scope){
$scope.mask = '9999 9999 9999 9999';
}])
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question