Greenly synthesised silver-alginate nanocomposites for degrading dyes and bacteria