我想補充角過濾工作這樣一個位置:https://jsfiddle.net/lukasz9999/9coywzgt/2/如何角過濾器添加到應用程序與routeProvider
到我的模板routeProvider代碼:
var app = angular.module("calculatorApplication", []).config(function ($routeProvider) {
$routeProvider.when("/home", {
templateUrl: "app/view/home.html",
controller: "HomeController"
});
$routeProvider.otherwise({
redirectTo: "/home"
});
$routeProvider.when("/calculator", {
templateUrl: "app/view/calculator.html",
controller: "CalculatorController"
});
});
app.controller("HomeController", function() {
});
加入
['角.filter'] 至 var app = angular.module(「calculatorApplication」,['angular.filter'])config(
正在中斷應用程序...
任何建議如何實現過濾器應用程序是這樣的? 謝謝
您正在使用哪種角度的版本? – vpsingh016