我想點擊這裏按鈕移動到另一頁是我的代碼:如何創建一個根點擊按鈕angularjs
var app= angular.module("MyUser",[]);
app.controller("UtilisateurControleur",function($scope,$http)
{$scope.list=[];
$scope.Utilisateur=[];
$scope.i=0;
$scope.login = function(user) {
$http.get("/allU").success(function(response) {
$scope.list = response;
$scope.nameList = [];
var a=response.length;
angular.forEach($scope.list,function(Obj,val){
if (user.login===Obj.login && user.password===Obj.password)
{
console.log("Hi "+Obj.nom+" You are in the system");
}
的,如果我想傳遞給一個HTML頁面後:/頁html的。我怎麼能解決這個問題
我添加這個js文件: –
我不明白你的意思 –
請參閱我所寫 –